From fe4367c58042924a7145e71d53bd1f5f2085a48f Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 24 Jan 2025 19:24:01 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B1:=20[client]=20sync=20upgrade=20wit?= =?UTF-8?q?h=202=20commits=20[trident-sync]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chore: --- packages/ui/certd-client/src/plugin/fast-crud/index.tsx | 4 +++- .../src/views/crud/component/uploader/form/crud.tsx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/plugin/fast-crud/index.tsx b/packages/ui/certd-client/src/plugin/fast-crud/index.tsx index e5817613..9bec0786 100644 --- a/packages/ui/certd-client/src/plugin/fast-crud/index.tsx +++ b/packages/ui/certd-client/src/plugin/fast-crud/index.tsx @@ -277,7 +277,9 @@ function install(app: any, options: any = {}) { action: "http://www.docmirror.cn:7070/api/upload/form/upload", name: "file", withCredentials: false, - uploadRequest: async ({ action, file, onProgress }: any) => { + uploadRequest: async (opts: any) => { + console.log("uploadRequest:", opts); + const { action, file, onProgress } = opts; // @ts-ignore const data = new FormData(); data.append("file", file); diff --git a/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx b/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx index 244ee033..84475be4 100644 --- a/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx +++ b/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx @@ -61,6 +61,8 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise< uploader: { type: "form", keepName: true, + test: 111, + custom: { aaa: 111 }, successHandle(res: any) { //这里我的后台返回res是一个key 字符串 //此方法需要返回的数据结构为 {key:"string",url:"string"...}