修复请求影响延迟
This commit is contained in:
@@ -66,13 +66,16 @@ http.interceptors.response.use((res) => {
|
|||||||
})
|
})
|
||||||
reject(data)
|
reject(data)
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
resolve(data.data)
|
||||||
resolve(data.data)
|
|
||||||
},300)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
|
|
||||||
|
if (error.status === 403) {
|
||||||
|
location.reload();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const showMsg = error.config.noMsg;
|
const showMsg = error.config.noMsg;
|
||||||
|
|
||||||
if (showMsg) {
|
if (showMsg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user