diff --git a/src/pages/RunconfigManage.vue b/src/pages/RunconfigManage.vue index f60a09a..4735037 100644 --- a/src/pages/RunconfigManage.vue +++ b/src/pages/RunconfigManage.vue @@ -52,6 +52,7 @@ persistent transition-show="scale" transition-hide="scale" + @hide="onDialogHide" > @@ -285,6 +286,17 @@ function onReset() { myForm.value?.resetValidation(); } +function onDialogHide() { + editInfo.id = ''; + editInfo.name = ''; + editInfo.config = ''; + editInfo.description = ''; + list.forEach((ite) => { + setDefaultVal(ite); + }); + tab.value = list[0].fieldName; +} + async function deleteData(row: RunconfigItem) { operateDisabled.value = true; $q.dialog({