李志伟 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,8 +45,8 @@ export default {
45 45
     onError(e) {
46 46
     },
47 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 51
     handleChange(file, fileList) {
52 52
       this.customUploadFile(file.raw)

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

@@ -205,8 +205,8 @@ export default {
205 205
     handleChange(val) {
206 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
 }