From a34e079708b6648e2ff677b94c608dd55632bd34 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Tue, 2 Aug 2022 15:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B8=82=E5=B1=80=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/utils/request.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/front/src/utils/request.js b/front/src/utils/request.js index 8c28c563..24446dc5 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -98,7 +98,10 @@ instance.interceptors.response.use( } if (response.headers.redirect) { window.location.replace(response.headers.redirect) - return + // setTimeout(() => { + location.reload() + // }, 1000) + return response } if (response.headers.redirect === '/#/login') { var keys = document.cookie.match(/[^ =;]+(?=\=)/g)