mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix(工作台): 修复应用无法获取数据源列表问题
This commit is contained in:
parent
16356472a1
commit
8826051ce0
@ -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[]) || [])
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user