修复请求影响延迟

This commit is contained in:
eoao
2025-09-14 11:49:37 +08:00
parent b21b63aea7
commit 457304eafb

View File

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