From c958c8d59ca3df6a209f74fd2cd51e0c04b25fea Mon Sep 17 00:00:00 2001 From: hyt <958868763@qq.com> Date: Thu, 10 Oct 2024 16:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 4 ++-- vue.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index c653efb..8c86324 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -135,8 +135,8 @@ service.interceptors.response.use( if (code === '500') { // 判断是否在处理 token 无效情况 - if (msg === 'token无效' && isHandlingTokenInvalid) return - if (msg === 'token无效' && !isHandlingTokenInvalid) { + if (msg === 'zt-token无效' && isHandlingTokenInvalid) return + if (msg === 'zt-token无效' && !isHandlingTokenInvalid) { isHandlingTokenInvalid = true; MessageBox.confirm('登录失效!请重新登录。', '系统提示', { confirmButtonText: '确定', diff --git a/vue.config.js b/vue.config.js index de2e721..41334f2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,7 +40,7 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `http://hzya.ufyct.com:9067/`, - // target: `http://ufidahz.com.cn:9067/`, + target: `http://ufidahz.com.cn:9067/`, // target: `http://127.0.0.1:9081/`, // target: `http://192.168.2.78:9999`, // target: `http://192.168.2.85:9999`, @@ -49,7 +49,7 @@ module.exports = { // target: `http://192.168.2.185:10086`, // target: `http://192.168.2.83:9999`, // target:'http://39.170.109.90:8081/', - target:'http://192.168.2.75:1024/', + // target:'http://192.168.2.75:1024/', changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "",