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) {