ui-process-h5 1.2.9 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4439,17 +4439,11 @@ const th = /* @__PURE__ */ Z(Ou, [["render", eh], ["__scopeId", "data-v-6a0012e5
4439
4439
  i[c].name.lastIndexOf(".") + 1
4440
4440
  )
4441
4441
  )) {
4442
- const A = new FormData();
4443
- A.append("file", i[c]);
4444
- const C = await this.request.post(
4445
- "/file/upload",
4446
- A,
4447
- {
4448
- headers: {
4449
- "Content-Type": "multipart/form-data"
4450
- }
4451
- }
4452
- );
4442
+ new FormData().append("file", i[c]);
4443
+ const C = await this.request.upload("/file/upload", {
4444
+ name: "file",
4445
+ ...i[c]
4446
+ });
4453
4447
  if (C.code === 200) {
4454
4448
  if (this.filesArr.length > 0) {
4455
4449
  for (let I = 0; I < this.filesArr.length; I++)