李志伟 3 年前
父节点
当前提交
c958b12423
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2
    2
      src/components/UploadImageList/index.vue
  2. 2
    2
      src/views/photoWall/edit.vue

+ 2
- 2
src/components/UploadImageList/index.vue 查看文件

45
     onError(e) {
45
     onError(e) {
46
     },
46
     },
47
     handleRemove(file, fileList) {
47
     handleRemove(file, fileList) {
48
-      this.fileList = []
49
-      this.$emit('handleDeleteIcon', true)
48
+      // console.log(file, fileList)
49
+      this.$emit('handleDeleteIcon', this.fileList)
50
     },
50
     },
51
     handleChange(file, fileList) {
51
     handleChange(file, fileList) {
52
       this.customUploadFile(file.raw)
52
       this.customUploadFile(file.raw)

+ 2
- 2
src/views/photoWall/edit.vue 查看文件

205
     handleChange(val) {
205
     handleChange(val) {
206
       this.gameForm.gameImage = val
206
       this.gameForm.gameImage = val
207
     },
207
     },
208
-    handleDeleteIcon() {
209
-      this.gameForm.gameImage = ''
208
+    handleDeleteIcon(val) {
209
+      this.gameForm.gameImage = val
210
     }
210
     }
211
   }
211
   }
212
 }
212
 }