Skip to content

Commit 02529da

Browse files
wangdan-fit2cloudshaohuzhang1
authored andcommitted
fix: Pressing the Enter key will open a new web page
1 parent b7a3077 commit 02529da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
:rules="rules"
1515
:model="form"
1616
require-asterisk-position="right"
17+
@submit.prevent
1718
>
1819
<el-form-item :label="$t('common.title')" prop="title">
1920
<el-input
@@ -45,13 +46,13 @@ const fieldFormRef = ref()
4546
const loading = ref<boolean>(false)
4647
4748
const form = ref<any>({
48-
title: t('chat.userInput')
49+
title: t('chat.userInput'),
4950
})
5051
5152
const rules = reactive({
5253
title: [
53-
{ required: true, message: t('dynamicsForm.paramForm.name.requiredMessage'), trigger: 'blur' }
54-
]
54+
{ required: true, message: t('dynamicsForm.paramForm.name.requiredMessage'), trigger: 'blur' },
55+
],
5556
})
5657
5758
const dialogVisible = ref<boolean>(false)

0 commit comments

Comments
 (0)