xianniu-ui 0.8.56 → 0.8.57

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": "xianniu-ui",
3
- "version": "0.8.56",
3
+ "version": "0.8.57",
4
4
  "private": false,
5
5
  "main": "lib/xianniu-ui.umd.min.js",
6
6
  "scripts": {
@@ -362,12 +362,11 @@ export default {
362
362
  .then((res) => {
363
363
  this.successFiles.push(res);
364
364
 
365
- this.realFileList.forEach((item,idx) => {
365
+ this.realFileList.forEach((item,idx,arr) => {
366
366
  if (item.uid === res.file.uid) {
367
367
  const obj = JSON.parse(JSON.stringify(res));
368
- const _item = JSON.parse(JSON.stringify(item));
369
- delete _item.raw;
370
- this.$set(this.realFileList, idx, Object.assign(obj, _item));
368
+ delete obj.file;
369
+ this.$set(arr, idx, obj);
371
370
  }
372
371
  });
373
372
  this.$emit("update:fileList", this.realFileList);