企业登录判定

main
严飞永 4 weeks ago
parent c8e23745b7
commit e6a0057055

@ -5,8 +5,8 @@ VUE_APP_TITLE = 苏州工业园区工业上楼管理系统
ENV = 'development' ENV = 'development'
# 苏州工业园区工业上楼管理系统/开发环境 # 苏州工业园区工业上楼管理系统/开发环境
# VUE_APP_BASE_API = 'http://192.168.0.108:7071' VUE_APP_BASE_API = 'http://192.168.0.108:7071'
VUE_APP_BASE_API = 'http://39.101.188.84:7071' # VUE_APP_BASE_API = 'http://39.101.188.84:7071'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

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

Loading…
Cancel
Save