per[litemall-admin]: 退出优化。

This commit is contained in:
Junling Bu
2020-03-05 21:00:52 +08:00
parent c2b6522e2b
commit 7a34bbe64e

View File

@@ -85,7 +85,7 @@ export default {
},
logout() {
this.$store.dispatch('LogOut').then(() => {
location.reload()// In order to re-instantiate the vue-router object to avoid bugs
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
})
}
}