修改token
This commit is contained in:
parent
890ba114d0
commit
c958c8d59c
|
@ -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: '确定',
|
||||
|
|
|
@ -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]: "",
|
||||
|
|
Loading…
Reference in New Issue