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

pref:优化初始跳转

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