Преглед изворни кода

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

liu.tao3 пре 1 година
родитељ
комит
6f28d97767
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      data-room-ui/packages/DataSetManagement/src/CustomEditForm.vue

+ 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 = ''