From 45c152577b3e62aefbcbfa39fb7b1b435aa07ac3 Mon Sep 17 00:00:00 2001 From: eoao Date: Sun, 14 Sep 2025 11:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=B7=E6=B1=82=E5=BD=B1?= =?UTF-8?q?=E5=93=8D=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail-vue/src/axios/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mail-vue/src/axios/index.js b/mail-vue/src/axios/index.js index 10bd4e8..5c18c3b 100644 --- a/mail-vue/src/axios/index.js +++ b/mail-vue/src/axios/index.js @@ -66,13 +66,16 @@ http.interceptors.response.use((res) => { }) reject(data) } - setTimeout(() => { - resolve(data.data) - },300) + resolve(data.data) }) }, (error) => { + if (error.status === 403) { + location.reload(); + return; + } + const showMsg = error.config.noMsg; if (showMsg) {