Skip to content

Commit 4c5e39f

Browse files
committed
fix: tts mode show default_value not working correctly
--bug=1050963 --user=刘瑞斌 【模型管理】语音输出模型,参数没勾选显示默认值,但是在应用中显示了默认值 https://www.tapd.cn/57709429/s/1638375
1 parent cc3813e commit 4c5e39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const open = (model_id: string, application_id?: string, model_setting_data?: an
7676
api.then((ok) => {
7777
model_form_field.value = ok.data
7878
const resp = ok.data
79-
.map((item: any) => ({ [item.field]: item.default_value }))
79+
.map((item: any) => ({ [item.field]: item.show_default_value !== false ? item.default_value : undefined }))
8080
.reduce((x, y) => ({ ...x, ...y }), {})
8181
// 删除不存在的字段
8282
if (model_setting_data) {

0 commit comments

Comments
 (0)