|
@@ -127,7 +127,8 @@ router.beforeEach(async (to, from, next) => {
|
|
// 在免登录名单,直接进入
|
|
// 在免登录名单,直接进入
|
|
next()
|
|
next()
|
|
} else {
|
|
} else {
|
|
- next({ path: loginRoutePath, query: { redirect: to.fullPath } })
|
|
|
|
|
|
+ window.location.href = `https://dev.autocde.com/login?redirect=${to.fullPath}`;
|
|
|
|
+ // next({ path: loginRoutePath, query: { redirect: to.fullPath } })
|
|
NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
|
|
NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
|
|
}
|
|
}
|
|
}
|
|
}
|