@zscreate/zhxy-app-component 1.0.127 → 1.0.128

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.
@@ -63,6 +63,9 @@
63
63
  url,
64
64
  filePath: res.tempFilePath,
65
65
  name: 'file',
66
+ header: {
67
+ 'X-Access-Token': uni.getStorageSync('token') || this.$store.state.token || this.$store.getters.token
68
+ },
66
69
  success: (uploadFileRes) => {
67
70
  const res = JSON.parse(uploadFileRes.data)
68
71
  let imgSrc = this.uniEnv.imgUrl + res.message;
@@ -22,7 +22,7 @@
22
22
  </template>
23
23
 
24
24
  <script>
25
- import {getOpenId, toAwait} from "../../utils/util";
25
+ import {cloneObj, getOpenId, toAwait} from "../../utils/util";
26
26
 
27
27
  var _self;
28
28
  export default {
@@ -187,7 +187,7 @@ export default {
187
187
  });
188
188
  },
189
189
  showImage() {
190
- this.emitList = this.defaultImg
190
+ this.emitList = cloneObj(this.defaultImg || [])
191
191
  this.showProgress = false;
192
192
  if (this.defaultImg && this.defaultImg.length && this.defaultImg.length > 0) {
193
193
  this.fileList = this.defaultImg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.127",
3
+ "version": "1.0.128",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",