@@ -81,7 +81,8 @@ const user = {
auth.removeToken()
state.token = ''
// 清除routers缓存,则路由劫持事件会根据状态,重新加载路由
- dispatch('CheckRoutes', true)
+ return dispatch('CheckRoutes', true)
+ }).then(_ => {
return router.push('/')
})
}