swordpass-ui 1.1.8 → 1.1.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": "swordpass-ui",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "author": "sword",
5
5
  "private": false,
6
6
  "scripts": {
@@ -296,11 +296,7 @@ export default {
296
296
  this.inputVal = []
297
297
  }
298
298
  if (val.constructor == String) {
299
- if (val) {
300
- this.inputVal = [...JSON.parse(val)]
301
- } else {
302
- this.inputVal = []
303
- }
299
+ this.inputVal = [...JSON.parse(val)]
304
300
  }
305
301
  },
306
302
  inputVal: {
@@ -473,6 +469,7 @@ export default {
473
469
  this.$refs.fileUpload.reload(this.inputVal)
474
470
  } else {
475
471
  console.warn('FileUpload 组件尚未渲染或已卸载')
472
+ this.refreshFileUpload()
476
473
  }
477
474
  })
478
475
  },