swordpass-ui 1.1.3 → 1.1.5

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.3",
3
+ "version": "1.1.5",
4
4
  "author": "sword",
5
5
  "private": false,
6
6
  "scripts": {
@@ -422,6 +422,7 @@ export default {
422
422
  */
423
423
  handleUpdate(ary, item) {
424
424
  const index = ary.findIndex((m) => m.uid === item.uid)
425
+ console.log('index', index)
425
426
  if (index > -1) {
426
427
  // 存在则更新
427
428
  ary[index] = { ...ary[index], ...item }
@@ -454,7 +455,9 @@ export default {
454
455
  // 同步附件数据到上传组件
455
456
  refreshFileUpload() {
456
457
  this.$nextTick(() => {
457
- this.$refs.fileUpload.reload(this.inputVal)
458
+ if (this.$refs.fileUpload) {
459
+ this.$refs.fileUpload.reload(this.inputVal)
460
+ }
458
461
  })
459
462
  },
460
463
  handleError(err, file) {