Browse Source

修改bug

chenrui 2 years ago
parent
commit
7b52ca6401

+ 4 - 2
src/views/promotionRulesManagement/promotionManagement/editModal.vue

@@ -298,8 +298,10 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
-        this.$refs.imageSet.setFileList('')
-        this.$refs.editor.setHtml('')
+        if (this.pageType == 'add') {
+          this.$refs.imageSet.setFileList('')
+          this.$refs.editor.setHtml('')
+        }
         this.form = {
           promoActiveSn: undefined,
           title: '',