mirror of
https://github.com/schroinerxy/cloud-mail.git
synced 2026-06-21 19:35:50 +08:00
修复请求影响延迟
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user