@zscreate/zhxy-app-component 1.0.141 → 1.0.142

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.
@@ -52,6 +52,9 @@ import {downloadFile, getOpenId, toAwait} from "../../utils/util";
52
52
  show: true,
53
53
  uploadIng: false,
54
54
  openId: undefined,
55
+ header: {
56
+ 'X-Access-Token': uni.getStorageSync('token') || this.$store.state.token || this.$store.getters.token
57
+ },
55
58
  isShow:true,//是否展示点击上传
56
59
  }
57
60
  },
@@ -159,9 +162,7 @@ import {downloadFile, getOpenId, toAwait} from "../../utils/util";
159
162
  fileName: that.name,
160
163
  },
161
164
  // header['X-Access-Token'] = uni.getStorageSync('token') || vm.$store.state.token
162
- header: {
163
- 'X-Access-Token': uni.getStorageSync('token') || this.$store.state.token || this.$store.getters.token
164
- },
165
+ header: this.header,
165
166
  success: function(res) {
166
167
  try {
167
168
  res = JSON.parse(res.data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.141",
3
+ "version": "1.0.142",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",