Commit a9d231ee authored by “yiyousong”'s avatar “yiyousong”

pref:优化初始跳转

parent 968aa1f1
...@@ -36,13 +36,12 @@ router.beforeEach((to, from, next) => { ...@@ -36,13 +36,12 @@ router.beforeEach((to, from, next) => {
if (islogin) { if (islogin) {
next(); next();
} else { } else {
location.href = process.env.VUE_APP_API_portal_URL + "/#/"; if (to.path === "/jump") {
// 再次判断防止死循环 next();
// if (to.path === "/login") { } else {
// next(); location.href = process.env.VUE_APP_API_portal_URL + "/#/";
// } else { // next({ path: "/login" });
// next({ path: "/login" }); }
// }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment