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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-process-h5",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -9957,17 +9957,11 @@ const hb = /* @__PURE__ */ function() {
9957
9957
  i[l].name.lastIndexOf(".") + 1
9958
9958
  )
9959
9959
  )) {
9960
- const d = new FormData();
9961
- d.append("file", i[l]);
9962
- const h = await this.request.post(
9963
- "/file/upload",
9964
- d,
9965
- {
9966
- headers: {
9967
- "Content-Type": "multipart/form-data"
9968
- }
9969
- }
9970
- );
9960
+ new FormData().append("file", i[l]);
9961
+ const h = await this.request.upload("/file/upload", {
9962
+ name: "file",
9963
+ ...i[l]
9964
+ });
9971
9965
  if (h.code === 200) {
9972
9966
  if (this.filesArr.length > 0) {
9973
9967
  for (let g = 0; g < this.filesArr.length; g++)