西海岸-响应拦截器-去掉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 setAccessToken
} from '@/utils/accessToken' } from '@/utils/accessToken'
let loadingInstance let loadingInstance
/** /**
@ -111,9 +112,10 @@ instance.interceptors.response.use(
} }
if (response.headers.redirect) { if (response.headers.redirect) {
window.location.replace(response.headers.redirect) window.location.replace(response.headers.redirect)
// setTimeout(() => { // 西-
location.reload() if(!whoShow.itShowXiHaiAn) {
// }, 1000) location.reload()
}
return response return response
} }
if (response.headers.redirect === '/#/login') { if (response.headers.redirect === '/#/login') {