mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
🔱: [client] sync upgrade with 2 commits [trident-sync]
chore:
This commit is contained in:
@@ -277,7 +277,9 @@ function install(app: any, options: any = {}) {
|
|||||||
action: "http://www.docmirror.cn:7070/api/upload/form/upload",
|
action: "http://www.docmirror.cn:7070/api/upload/form/upload",
|
||||||
name: "file",
|
name: "file",
|
||||||
withCredentials: false,
|
withCredentials: false,
|
||||||
uploadRequest: async ({ action, file, onProgress }: any) => {
|
uploadRequest: async (opts: any) => {
|
||||||
|
console.log("uploadRequest:", opts);
|
||||||
|
const { action, file, onProgress } = opts;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const data = new FormData();
|
const data = new FormData();
|
||||||
data.append("file", file);
|
data.append("file", file);
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
|
|||||||
uploader: {
|
uploader: {
|
||||||
type: "form",
|
type: "form",
|
||||||
keepName: true,
|
keepName: true,
|
||||||
|
test: 111,
|
||||||
|
custom: { aaa: 111 },
|
||||||
successHandle(res: any) {
|
successHandle(res: any) {
|
||||||
//这里我的后台返回res是一个key 字符串
|
//这里我的后台返回res是一个key 字符串
|
||||||
//此方法需要返回的数据结构为 {key:"string",url:"string"...}
|
//此方法需要返回的数据结构为 {key:"string",url:"string"...}
|
||||||
|
|||||||
Reference in New Issue
Block a user