瀏覽代碼

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