<template>
    <div></div>
</template>

<script>
import { Toast } from 'vant'

export default {
    name: 'Logout',
    data() {
        return {}
    },
    watch: {},
    mounted() {
        this.$store.dispatch('user/cleanCache').then(res => {
            Toast('退出成功')
            this.$router.push('/login')
        })
    },
    methods: {}
}
</script>
