fix: 修复配置TTS模型参数时必填项没有拦截的问题

--bug=1048068 --user=刘瑞斌 【应用】语音合成模型参数设置了必填,没有填写的参数的时候点确认没有提示 https://www.tapd.cn/57709429/s/1598728
This commit is contained in:
CaptainB 2024-10-25 18:57:06 +08:00 committed by 刘瑞斌
parent 8c2a95eec8
commit f19a4d9bd2

View File

@ -100,8 +100,12 @@ const reset_default = (model_id: string, application_id?: string) => {
}
const submit = async () => {
emit('refresh', form_data.value)
dialogVisible.value = false
dynamicsFormRef.value?.validate().then((ok) => {
if (ok) {
emit('refresh', form_data.value)
dialogVisible.value = false
}
})
}