Ver código fonte

已经登录的情况下不能去往登录页

Xiao_123 5 meses atrás
pai
commit
4102ce1849
1 arquivos alterados com 3 adições e 4 exclusões
  1. 3 4
      src/permission.js

+ 3 - 4
src/permission.js

@@ -48,10 +48,9 @@ router.beforeEach(async (to, from, next) => {
         }
       }
     }
-    // if (to.path === '/login') {
-    //   next({ path: '/recruitHome' })
-    // } else {
-    // }
+    if (to.path === '/login') {
+      next({ path: '/recruitHome' })
+    }
     // 获取字典信息
     const dictStore = useDictStore()
     dictStore.getDictTypeData()