|
|
|
@ -67,11 +67,12 @@ router.beforeEach((to, from, next) => {
|
|
|
|
|
next({ ...to, replace: true });
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
// console.error("单点登录失败:", err);
|
|
|
|
|
store.dispatch("LogOut").then(() => {
|
|
|
|
|
Message.error("单点登录失败,请重试");
|
|
|
|
|
window.location.href =
|
|
|
|
|
"https://qytt.sipac.gov.cn/ecobrainportal/index.html";
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
window.location.href =
|
|
|
|
|
"https://qytt.sipac.gov.cn/ecobrainportal/index.html";
|
|
|
|
|
}, 3000);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|