From a4abdf9cc0eef639b877b36f730faf0ca4e77fd7 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Tue, 19 Aug 2025 13:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=99=BB=E5=BD=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/httpRequest.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index f377817..11b0d68 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -49,6 +49,9 @@ http.interceptors.response.use(response => { if (response.data && response.data.code === 401) { // 401, token失效 clearLoginInfo() router.push({name: 'login'}) + setTimeout(() => { + window.location.reload() + }, 300); } return response }, error => {