西海岸-响应拦截器-去掉reload

This commit is contained in:
guoyue 2022-09-20 17:39:28 +08:00
parent 3e6f875728
commit 8cb2f83fb5
1 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,7 @@ import {
setAccessToken
} from '@/utils/accessToken'
let loadingInstance
/**
@ -111,9 +112,10 @@ instance.interceptors.response.use(
}
if (response.headers.redirect) {
window.location.replace(response.headers.redirect)
// setTimeout(() => {
// 西-
if(!whoShow.itShowXiHaiAn) {
location.reload()
// }, 1000)
}
return response
}
if (response.headers.redirect === '/#/login') {