瀏覽代碼

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

Xiao_123 5 月之前
父節點
當前提交
4102ce1849
共有 1 個文件被更改,包括 3 次插入4 次删除
  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()