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]: "",