联调 普测
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user