Commit 1ab5eb49b085dc61ce5359b908c8167077e482dd

Authored by ww
1 parent c660991e

fix: 打包输出结果不支持for await语法

@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 await validate(); 54 await validate();
55 const { customerId } = getFieldsValue(); 55 const { customerId } = getFieldsValue();
56 const task: Promise<any>[] = []; 56 const task: Promise<any>[] = [];
57 - for await (const item of record) { 57 + for (const item of record) {
58 task.push(dispatchCustomerApi({ ...item, customerId })); 58 task.push(dispatchCustomerApi({ ...item, customerId }));
59 } 59 }
60 await Promise.all(task); 60 await Promise.all(task);