diff --git a/core/core-frontend/src/views/chart/components/editor/dataset-select/DatasetSelect.vue b/core/core-frontend/src/views/chart/components/editor/dataset-select/DatasetSelect.vue index 7af45cbec0..0a360b8b26 100644 --- a/core/core-frontend/src/views/chart/components/editor/dataset-select/DatasetSelect.vue +++ b/core/core-frontend/src/views/chart/components/editor/dataset-select/DatasetSelect.vue @@ -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[]) || []) })