Skip to content

Commit f1ef609

Browse files
committed
fix: 修复添加参数对话框的标题文字不对应的问题
--bug=1047778 --user=刘瑞斌 【应用编排】- 用户输入,点击编辑参数后,关闭对话框,再点击添加参数打开的还是编辑参数对话框 https://www.tapd.cn/57709429/s/1601532
1 parent 527ddbf commit f1ef609

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ui/src/workflow/nodes/base-node/component/ApiFieldFormDialog.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:close-on-click-modal="false"
66
:close-on-press-escape="false"
77
:destroy-on-close="true"
8+
:before-close="close"
89
append-to-body
910
>
1011
<el-form
@@ -110,6 +111,7 @@ const open = (row: any) => {
110111
111112
const close = () => {
112113
dialogVisible.value = false
114+
isEdit.value = false
113115
}
114116
115117
const submit = async (formEl: FormInstance | undefined) => {

ui/src/workflow/nodes/base-node/component/UserFieldFormDialog.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:close-on-click-modal="false"
66
:close-on-press-escape="false"
77
:destroy-on-close="true"
8+
:before-close="close"
89
append-to-body
910
>
1011
<DynamicsFormConstructor
@@ -16,7 +17,7 @@
1617
></DynamicsFormConstructor>
1718
<template #footer>
1819
<span class="dialog-footer">
19-
<el-button @click.prevent="dialogVisible = false"> 取消 </el-button>
20+
<el-button @click.prevent="close"> 取消 </el-button>
2021
<el-button type="primary" @click="submit()" :loading="loading">
2122
{{ isEdit ? '保存' : '添加' }}
2223
</el-button>

0 commit comments

Comments
 (0)