Parcourir la source

修改无登录访问权限

WINDOWS-7IFQK7E\EDY il y a 8 mois
Parent
commit
f861a8b4c8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -14,7 +14,7 @@ router.beforeEach((to, from) => {
     return true//todo暂时去掉登录后的权限,整理代码后重构权限功能
   }
   else if (!user.value?.token) {
-    if (to.path == '/login' || to.path == "/login/identityConfirm" || to.path == "/login/feedback") {
+    if (to.path == '/login' || to.path == "/login/identityConfirm" || to.path == "/login/feedback" || to.path=="/login/pwdReset") {
       return true
     } else {
       return {