Commit 7f0c400a by 姜雷

修改跳转进入路由后的逻辑

parent fc2fd526
...@@ -63,8 +63,10 @@ const configRoutePermission = ( ...@@ -63,8 +63,10 @@ const configRoutePermission = (
if (whiteList.indexOf(to.path) !== -1) { if (whiteList.indexOf(to.path) !== -1) {
next(); next();
} else { } else {
next('/login'); store.dispatch('FedLogOut').then(() => {
next({ path: '/login' });
NProgress.done(); NProgress.done();
});
} }
} }
}); });
......
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