修改token

This commit is contained in:
hyt 2024-10-10 16:50:32 +08:00
parent 890ba114d0
commit c958c8d59c
2 changed files with 4 additions and 4 deletions

View File

@ -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: '确定',

View File

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