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

pref:优化初始跳转

parent 968aa1f1
...@@ -35,14 +35,13 @@ router.beforeEach((to, from, next) => { ...@@ -35,14 +35,13 @@ router.beforeEach((to, from, next) => {
let islogin = local.getLocal("sampleToken") ? true : false; let islogin = local.getLocal("sampleToken") ? true : false;
if (islogin) { if (islogin) {
next(); next();
} else {
if (to.path === "/jump") {
next();
} else { } else {
location.href = process.env.VUE_APP_API_portal_URL + "/#/"; location.href = process.env.VUE_APP_API_portal_URL + "/#/";
// 再次判断防止死循环
// if (to.path === "/login") {
// next();
// } 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