联调 普测

This commit is contained in:
GGJ
2024-05-14 18:17:53 +08:00
parent 91e553ead3
commit 25f5272967
8 changed files with 189 additions and 178 deletions

View File

@@ -60,7 +60,9 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
// config.baseURL='/hzj'
// }
// 取消重复请求
removePending(config)
if (config.url != '/system-boot/file/upload') removePending(config)
options.CancelDuplicateRequest && addPending(config)
// 创建loading实例
if (options.loading) {
@@ -255,10 +257,10 @@ export function baseRequest(url, value = {}, method = 'post', options = {}) {
}
// 模块内的请求, 会自动加上模块的前缀
export const moduleRequest =
(moduleUrl) =>
(url, ...arg) => {
return baseRequest(moduleUrl + url, ...arg)
}
moduleUrl =>
(url, ...arg) => {
return baseRequest(moduleUrl + url, ...arg)
}
interface LoadingInstance {
target: any