From f3973fe28dc6c0bfc4a0bab8d9f49e07e9149c98 Mon Sep 17 00:00:00 2001 From: lizhicheng2 Date: Mon, 19 Sep 2022 13:04:27 +0800 Subject: [PATCH] =?UTF-8?q?bug=20fix:=E5=8D=95=E7=82=B9=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=99=BB=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/utils/request.js | 1 + front/src/views/home/components/header.vue | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) 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 = () => {