mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-04 23:10:25 +08:00
feat: redis支持工单流程审批
This commit is contained in:
@@ -48,9 +48,6 @@ export function useApiFetch<T>(api: Api, params: any = null, reqOptions: Request
|
||||
}
|
||||
|
||||
let paramsValue = unref(params);
|
||||
if (api.beforeHandler) {
|
||||
paramsValue = api.beforeHandler(paramsValue);
|
||||
}
|
||||
|
||||
let apiUrl = url;
|
||||
// 简单判断该url是否是restful风格
|
||||
@@ -58,6 +55,10 @@ export function useApiFetch<T>(api: Api, params: any = null, reqOptions: Request
|
||||
apiUrl = templateResolve(apiUrl, paramsValue);
|
||||
}
|
||||
|
||||
if (api.beforeHandler) {
|
||||
paramsValue = api.beforeHandler(paramsValue);
|
||||
}
|
||||
|
||||
if (paramsValue) {
|
||||
const method = options.method?.toLowerCase();
|
||||
// post和put使用json格式传参
|
||||
|
||||
Reference in New Issue
Block a user