Browse Source

修复 富文本删除后重新上传,会显示删掉的图片

wyy 1 year ago
parent
commit
400f63682a
1 changed files with 1 additions and 4 deletions
  1. 1 4
      mall4v/src/components/tiny-mce/index.vue

+ 1 - 4
mall4v/src/components/tiny-mce/index.vue

@@ -243,10 +243,7 @@ export default {
       return isLt2M && isJPG
     },
     imageSuccessCBK (response, file, fileList) {
-      const _this = this
-      fileList.forEach(v => {
-        window.tinymce.get(_this.tinymceId).insertContent(`<img class="wscnph" src="${this.resourcesUrl + v.response.data}" >`)
-      })
+      window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${this.resourcesUrl + file.response.data}" >`)
     }
   }
 }