diff --git a/front/src/utils/request.js b/front/src/utils/request.js index d96f4f78..5b44276a 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -100,6 +100,7 @@ instance.interceptors.response.use( console.log('接口返回', response) console.log('接口返回headers', response.headers) console.log('接口返回REDIRECT', response.headers.redirect) + debugger response['Access-Control-Expose-Headers'] = 'redirect' const { code, diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index b1fc9482..c3719752 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -161,14 +161,14 @@ localStorage.removeItem('DetailsPageconetent') window.sessionStorage.setItem('visits', JSON.stringify([])) // 西海岸不返回登录页 - if (!whoShow1.itShowXiHaiAn) { - if (recordRoute) { - const fullPath = route.fullPath - router.push(`/login?redirect=${fullPath}`) - } else { - router.push('/login') - } - } + // if (!whoShow1.itShowXiHaiAn) { + // if (recordRoute) { + // const fullPath = route.fullPath + // router.push(`/login?redirect=${fullPath}`) + // } else { + // router.push('/login') + // } + // } } // 返回首页 const goToHome = () => {