From f19a4d9bd2bae1ed06f9a9fccac227276fcbc221 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 25 Oct 2024 18:57:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AETTS?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=8F=82=E6=95=B0=E6=97=B6=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E9=A1=B9=E6=B2=A1=E6=9C=89=E6=8B=A6=E6=88=AA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048068 --user=刘瑞斌 【应用】语音合成模型参数设置了必填,没有填写的参数的时候点确认没有提示 https://www.tapd.cn/57709429/s/1598728 --- .../application/component/TTSModeParamSettingDialog.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/views/application/component/TTSModeParamSettingDialog.vue b/ui/src/views/application/component/TTSModeParamSettingDialog.vue index 6a305903e..a2f41836a 100644 --- a/ui/src/views/application/component/TTSModeParamSettingDialog.vue +++ b/ui/src/views/application/component/TTSModeParamSettingDialog.vue @@ -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 + } + }) }