|
@@ -150,13 +150,7 @@ router.beforeEach((to, from, next) => {
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
store.dispatch('FedLogOut').then(() => {
|
|
store.dispatch('FedLogOut').then(() => {
|
|
|
Message.error('Verification failed, please login again')
|
|
Message.error('Verification failed, please login again')
|
|
|
- const prodHref = 'http://dgt.dgtis.com/oneportal/login';//正式地址
|
|
|
|
|
-
|
|
|
|
|
- // const prodHref = 'http://dgtcloud.dgtis.com/oneportal/login';//阿里云地址
|
|
|
|
|
-
|
|
|
|
|
- const devHref = 'http://192.168.100.87:8080/oneportal/login';//测试地址
|
|
|
|
|
-
|
|
|
|
|
- location.href = process.env.NODE_ENV === 'production' ? prodHref : devHref;
|
|
|
|
|
|
|
+ location.href = process.env.OS_API;
|
|
|
// next({ path: '/login' })
|
|
// next({ path: '/login' })
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -175,13 +169,7 @@ router.beforeEach((to, from, next) => {
|
|
|
if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入
|
|
if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入
|
|
|
next()
|
|
next()
|
|
|
} else {
|
|
} else {
|
|
|
- const prodHref = 'http://dgt.dgtis.com/oneportal/login';//正式地址
|
|
|
|
|
-
|
|
|
|
|
- // const prodHref = 'http://dgtcloud.dgtis.com/oneportal/login';//阿里云地址
|
|
|
|
|
-
|
|
|
|
|
- const devHref = 'http://192.168.100.87:8080/oneportal/login';//测试地址
|
|
|
|
|
-
|
|
|
|
|
- location.href = process.env.NODE_ENV === 'production' ? prodHref : devHref;
|
|
|
|
|
|
|
+ location.href = process.env.OS_API;
|
|
|
// next('/login') // 否则全部重定向到登录页
|
|
// next('/login') // 否则全部重定向到登录页
|
|
|
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
|
|
|
}
|
|
}
|