chenrui преди 2 години
родител
ревизия
7b52ca6401
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/views/promotionRulesManagement/promotionManagement/editModal.vue

+ 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: '',