Browse Source

页面不需要登录

lifanagju_citu 10 months ago
parent
commit
37485f8d49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/permission.js

+ 1 - 1
src/permission.js

@@ -43,7 +43,7 @@ router.beforeEach(async (to, from, next) => {
       // next()
     }
   } else {
-    if (to.meta?.loginType === 'noLogin') { // 页面不需要登录
+    if (to.meta?.loginType === 'noLogin' || to.meta?.loginType === 'common') { // 页面不需要登录
       next()
     } else {
       next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页