diff --git a/front/src/utils/request.js b/front/src/utils/request.js index bf39fb68..01cfae65 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -161,9 +161,11 @@ instance.interceptors.response.use( if (response.headers.redirect) { if (response.headers.redirect === '/#/login') { setAccessToken('') + window.location.replace('/ucs/#/login') setTimeout(() => { location.reload() }, 1000) + return Promise.resolve() } window.location.replace(response.headers.redirect) return Promise.resolve()