mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: tts mode dont show default value
This commit is contained in:
parent
5faa28ec4a
commit
1cf59cd49f
|
|
@ -98,7 +98,7 @@ const reset_default = (model_id: string, application_id?: string) => {
|
|||
api.then((ok) => {
|
||||
model_form_field.value = ok.data
|
||||
const model_setting_data = ok.data
|
||||
.map((item) => ({ [item.field]: item.default_value }))
|
||||
.map((item) => ({ [item.field]: item.show_default_value !== false ? item.default_value : undefined }))
|
||||
.reduce((x, y) => ({ ...x, ...y }), {})
|
||||
|
||||
emit('refresh', model_setting_data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue