fix:修复用户登录和切换访客登录的问题

This commit is contained in:
Xwen
2023-12-16 10:03:29 +08:00
parent a03a7162dd
commit 3a2d8846bc
5 changed files with 27 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ router.beforeEach((to, from, next) => {
next();
} else {
next();
useUserStore().resetInfo();
// next(`/login?redirect=${to.path}&unTourist=true`); // 否则全部重定向到登录页
NProgress.done();
}