1234567891011121314151617181920212223 |
- <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>
|