Skip to content

Commit f19a4d9

Browse files
committed
fix: 修复配置TTS模型参数时必填项没有拦截的问题
--bug=1048068 --user=刘瑞斌 【应用】语音合成模型参数设置了必填,没有填写的参数的时候点确认没有提示 https://www.tapd.cn/57709429/s/1598728
1 parent 8c2a95e commit f19a4d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ui/src/views/application/component/TTSModeParamSettingDialog.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,12 @@ const reset_default = (model_id: string, application_id?: string) => {
100100
}
101101
102102
const submit = async () => {
103-
emit('refresh', form_data.value)
104-
dialogVisible.value = false
103+
dynamicsFormRef.value?.validate().then((ok) => {
104+
if (ok) {
105+
emit('refresh', form_data.value)
106+
dialogVisible.value = false
107+
}
108+
})
105109
}
106110
107111

0 commit comments

Comments
 (0)