diff --git a/.env.development b/.env.development index 2e8c0ab..555f49e 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 苏州工业园区工业上楼管理系统 ENV = 'development' # 苏州工业园区工业上楼管理系统/开发环境 -# 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://192.168.0.108:7071' +# VUE_APP_BASE_API = 'http://39.101.188.84:7071' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/permission.js b/src/permission.js index a14b5a5..328cd79 100644 --- a/src/permission.js +++ b/src/permission.js @@ -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); }); });