From e6a00570552b9b69578cf6fce04e139855513b2d Mon Sep 17 00:00:00 2001 From: yanfeiyong <2060201549@qq.com> Date: Tue, 27 May 2025 16:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=99=BB=E5=BD=95=E5=88=A4?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/permission.js | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) 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); }); });