去掉加载动画

This commit is contained in:
yj 2024-08-13 14:22:17 +08:00
parent 9db8c50d21
commit 8288e4e2d1
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ class Request {
request<T>(config: RequestConfig): Promise<T> {
return new Promise((resolve, reject) => {
storage.setItem('loading', true)
// storage.setItem('loading', true)
if (config.interceptors?.requestInterceptors) {
config = config.interceptors.requestInterceptors(config)
}
@ -125,7 +125,7 @@ class Request {
.catch((err: any) => {
reject(err)
}).finally(() => {
storage.setItem('loading', false)
// storage.setItem('loading', false)
})
})
}