Commit 985b3a84 authored by 李苏's avatar 李苏 💬

通用logout调整

parent 6477faf0
......@@ -189,9 +189,15 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
location.href = '/index';
this.$post('/logout').finally(()=>{
localStorage.clear()
this.$store.dispatch('LogOut').then(() => {
location.href = '/index';
})
})
}).catch(() => {});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment