This commit is contained in:
parent
00c6a2e0f3
commit
57d636ba91
|
|
@ -70,7 +70,7 @@ service.interceptors.response.use(
|
||||||
msg: '请求发生错误',
|
msg: '请求发生错误',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const status = data?.status || response.status
|
const status = data?.status || response?.status || data.code
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 200:
|
case 200:
|
||||||
// return data
|
// return data
|
||||||
|
|
@ -85,9 +85,8 @@ service.interceptors.response.use(
|
||||||
// }
|
// }
|
||||||
// modelShow = false
|
// modelShow = false
|
||||||
// }
|
// }
|
||||||
|
message.error('登录已经失效,请重新登录')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
message.error('登录已经失效,请重新登录')
|
|
||||||
window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws/#/unified/'
|
window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws/#/unified/'
|
||||||
}, 500)
|
}, 500)
|
||||||
return Promise.reject(data)
|
return Promise.reject(data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue