fix:修复用户登录和切换访客登录的问题
This commit is contained in:
@@ -42,6 +42,7 @@ router.beforeEach((to, from, next) => {
|
||||
next();
|
||||
} else {
|
||||
next();
|
||||
useUserStore().resetInfo();
|
||||
// next(`/login?redirect=${to.path}&unTourist=true`); // 否则全部重定向到登录页
|
||||
NProgress.done();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user