西海岸-响应拦截器-去掉reload
This commit is contained in:
parent
3e6f875728
commit
8cb2f83fb5
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue