|
|
|
@ -82,10 +82,7 @@ router.beforeEach((to, from, next) => {
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
location.href =
|
|
|
|
|
window.location.hostname == "180.108.205.123"
|
|
|
|
|
? process.env.VUE_APP_SSO_LOGIN_W
|
|
|
|
|
: process.env.VUE_APP_SSO_LOGIN_N;
|
|
|
|
|
location.href = process.env.VUE_APP_SSO_LOGIN_N;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// console.log('没code')
|
|
|
|
@ -94,10 +91,7 @@ router.beforeEach((to, from, next) => {
|
|
|
|
|
next();
|
|
|
|
|
NProgress.done();
|
|
|
|
|
} else {
|
|
|
|
|
location.href =
|
|
|
|
|
window.location.hostname == "180.108.205.123"
|
|
|
|
|
? process.env.VUE_APP_SSO_LOGIN_W
|
|
|
|
|
: process.env.VUE_APP_SSO_LOGIN_N;
|
|
|
|
|
location.href = process.env.VUE_APP_SSO_LOGIN_N;
|
|
|
|
|
NProgress.done();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|