mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复配置TTS参数不保存点取消后不能回显的问题
--bug=1048094 --user=刘瑞斌 【应用编排】进入编排页面,在语音模型参数设置弹框中点击取消后再次打开弹框,自定义字段值全部清空了 https://www.tapd.cn/57709429/s/1598751
This commit is contained in:
parent
dbaafee224
commit
71cc563d08
|
|
@ -75,12 +75,10 @@ const open = (model_id: string, application_id?: string, model_setting_data?: an
|
|||
const api = getApi(model_id, application_id)
|
||||
api.then((ok) => {
|
||||
model_form_field.value = ok.data
|
||||
model_setting_data =
|
||||
model_setting_data && keys(model_setting_data).length > 0
|
||||
? model_setting_data
|
||||
: ok.data
|
||||
const resp = ok.data
|
||||
.map((item: any) => ({ [item.field]: item.default_value }))
|
||||
.reduce((x, y) => ({ ...x, ...y }), {})
|
||||
model_setting_data = { ...resp, ...model_setting_data }
|
||||
// 渲染动态表单
|
||||
dynamicsFormRef.value?.render(model_form_field.value, model_setting_data)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue