From 8cb2f83fb520c06d7aa55c1ab7a400a19bd03540 Mon Sep 17 00:00:00 2001 From: guoyue Date: Tue, 20 Sep 2022 17:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8-=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E5=99=A8-=E5=8E=BB=E6=8E=89reload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/utils/request.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/front/src/utils/request.js b/front/src/utils/request.js index d96f4f78..2925aaf2 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -19,6 +19,7 @@ import { setAccessToken } from '@/utils/accessToken' + let loadingInstance /** @@ -111,9 +112,10 @@ instance.interceptors.response.use( } if (response.headers.redirect) { window.location.replace(response.headers.redirect) - // setTimeout(() => { - location.reload() - // }, 1000) + // 西海岸-不重新加载 + if(!whoShow.itShowXiHaiAn) { + location.reload() + } return response } if (response.headers.redirect === '/#/login') {