@zscreate/zhxy-app-component 1.0.122 → 1.0.125

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.
@@ -152,7 +152,9 @@ import {downloadFile, getOpenId, toAwait} from "../../utils/util";
152
152
  url: that.url,
153
153
  filePath: path[0].path,
154
154
  name: 'file',
155
- formData: {},
155
+ formData: {
156
+ fileName: that.name,
157
+ },
156
158
  // header['X-Access-Token'] = uni.getStorageSync('token') || vm.$store.state.token
157
159
  header: {
158
160
  'X-Access-Token': uni.getStorageSync('token') || this.$store.state.token || this.$store.getters.token
@@ -184,7 +186,12 @@ import {downloadFile, getOpenId, toAwait} from "../../utils/util";
184
186
  }
185
187
  that.$emit('filePost', imgObj)
186
188
  },
189
+ fail() {
190
+ uni.showToast({title: '文件上传失败', icon: 'none'})
191
+ },
187
192
  complete() {
193
+ that.show = false
194
+ that.percent = 0
188
195
  that.uploadIng = false
189
196
  }
190
197
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.122",
3
+ "version": "1.0.125",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",