fix: Pressing the Enter key will open a new web page
parent
8e10410046
commit
a5d046c26b
|
|
@ -14,6 +14,7 @@
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
:model="form"
|
:model="form"
|
||||||
require-asterisk-position="right"
|
require-asterisk-position="right"
|
||||||
|
@submit.prevent
|
||||||
>
|
>
|
||||||
<el-form-item :label="$t('common.title')" prop="title">
|
<el-form-item :label="$t('common.title')" prop="title">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
@ -45,13 +46,13 @@ const fieldFormRef = ref()
|
||||||
const loading = ref<boolean>(false)
|
const loading = ref<boolean>(false)
|
||||||
|
|
||||||
const form = ref<any>({
|
const form = ref<any>({
|
||||||
title: t('chat.userInput')
|
title: t('chat.userInput'),
|
||||||
})
|
})
|
||||||
|
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
title: [
|
title: [
|
||||||
{ required: true, message: t('dynamicsForm.paramForm.name.requiredMessage'), trigger: 'blur' }
|
{ required: true, message: t('dynamicsForm.paramForm.name.requiredMessage'), trigger: 'blur' },
|
||||||
]
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
const dialogVisible = ref<boolean>(false)
|
const dialogVisible = ref<boolean>(false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue