Merge pull request #8348 from dataease/pr@dev-v2_mobile_fix

fix(系统设置): 引擎设置缺少参数
This commit is contained in:
dataeaseShu 2024-03-05 16:42:47 +08:00 committed by GitHub
commit 6a8fa05f07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,21 +48,7 @@ const templateList = ref<SettingRecord[]>([])
const templateListTime = ref<SettingRecord[]>([]) const templateListTime = ref<SettingRecord[]>([])
const getEngine = () => { const getEngine = () => {
getDeEngine().then(res => { getDeEngine().then(res => {
let { let { id, type, configuration } = res.data
name,
createBy,
id,
createTime,
creator,
type,
pid,
configuration,
syncSetting,
fileName,
size,
description,
lastSyncTime
} = res.data
if (configuration) { if (configuration) {
configuration = JSON.parse(configuration) configuration = JSON.parse(configuration)
} }
@ -129,7 +115,7 @@ const getEngine = () => {
}, },
{ {
pkey: 'datasource.extra_params', pkey: 'datasource.extra_params',
pval: configuration?.extra_params, pval: configuration?.extraParams,
type: '', type: '',
sort: 0 sort: 0
} }