mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-11 19:23:41 +08:00
fix(projects): 修复构建后mockjs对xhr的影响问题
This commit is contained in:
@@ -18,7 +18,7 @@ export async function handleServiceResult<T = any>(error: Service.RequestError |
|
||||
export function adapter<T extends Service.ServiceAdapter>(
|
||||
adapterFun: T,
|
||||
...args: Service.MultiRequestResult<TypeUtil.GetFunArgs<T>>
|
||||
): Service.RequestResult<TypeUtil.GetFunReturn<T>> {
|
||||
): Service.RequestResult<ReturnType<T>> {
|
||||
let result: Service.RequestResult | undefined;
|
||||
|
||||
const hasError = args.some(item => {
|
||||
|
||||
Reference in New Issue
Block a user