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

通用logout调整

parent 6477faf0
...@@ -189,9 +189,15 @@ export default { ...@@ -189,9 +189,15 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$store.dispatch('LogOut').then(() => { this.$post('/logout').finally(()=>{
location.href = '/index'; localStorage.clear()
this.$store.dispatch('LogOut').then(() => {
location.href = '/index';
})
}) })
}).catch(() => {}); }).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