fix(工作台): 修复应用无法获取数据源列表问题

This commit is contained in:
wangjiahao 2024-12-20 11:59:37 +08:00 committed by 王嘉豪
parent 16356472a1
commit 8826051ce0

View File

@ -68,7 +68,8 @@ const sortTypeChange = arr => {
const initDataset = () => {
loadingDatasetTree.value = true
const method = props.sourceType === 'datasource' ? getDatasourceList : getDatasetTree
method({})
const params = props.sourceType === 'datasource' ? null : {}
method(params)
.then(res => {
sortTypeChange((res as unknown as Tree[]) || [])
})