zhuangyunsheng 1 年間 前
コミット
c045182cfd
1 ファイル変更3 行追加4 行削除
  1. 3 4
      src/router/index.js

+ 3 - 4
src/router/index.js

@@ -56,9 +56,8 @@ router.beforeEach(async (to, from, next) => {
                 tool.data.set("USER_INFO", user.user);
             } else tool.data.set("OA_USER_INFO", user.user);
         }
-        console.log(to)
-        console.log(from)
-        next(to.query.path && to.fullPath.replace("/redirect", to.query.path) || (from.fullPath == "/login" && "/" || from.fullPath == "/login"));
+
+        next(to.query.path && to.fullPath.replace("/redirect", to.query.path) || (from.fullPath == "/login" && "/" || from.fullPath));
         return false;
     }
 
@@ -72,7 +71,7 @@ router.beforeEach(async (to, from, next) => {
         next();
         return false;
     }
-    console.log(to)
+
     if (to.path === "/login") {
         // 删除路由(替换当前layout路由)
         router.addRoute(routes[0]);