fix(Navbar.vue): 退出路由无法跳转到登录页面问题修复
This commit is contained in:
1 parent
3fa3d7ec0c
commit
58d3c0102f
1 file changed
+3
-2
@@ -80,8 +80,9 @@ export default {
|
||||
store.dispatch('app/toggleSideBar', false)
|
||||
},
|
||||
logout: () => {
|
||||
store.dispatch('user/logout')
|
||||
router.push(`/login?redirect=${route.fullPath}`)
|
||||
store.dispatch('user/logout').then(()=>{
|
||||
router.push(`/login?redirect=${route.fullPath}`)
|
||||
})
|
||||
}
|
||||
})
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user