Parcourir la source

feat:修复关闭编辑数据集不保存

liu.tao3 il y a 1 an
Parent
commit
6f28d97767

+ 3 - 2
data-room-ui/packages/DataSetManagement/src/CustomEditForm.vue

@@ -1071,13 +1071,13 @@ export default {
           customClass: 'bs-el-message-box'
         }).then(() => {
           this.saveFun(formName)
-          this.goBack()
+
         }).catch(() => {
 
         })
       } else {
         this.saveFun(formName)
-        this.goBack()
+
       }
     },
     /**
@@ -1134,6 +1134,7 @@ export default {
           this.$parent.setType = null
           this.saveLoading = false
           this.saveText = ''
+          this.goBack()
         }).catch(() => {
           this.saveLoading = false
           this.saveText = ''