diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue b/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue index 9e8514d6c5..b58fea3eb0 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/form/DatasetUnion.vue @@ -95,8 +95,8 @@ const dfsNodeList = computed(() => { }) const dfsNodeNameList = (list, arr) => { - return list.forEach(ele => { - arr.push(ele.tableName) + list.forEach(ele => { + arr.push(`${ele.tableName}${ele.datasourceId}`) if (ele.children?.length) { dfsNodeNameList(ele.children, arr) } diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue index 161ec36d9c..053f7f58e4 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue @@ -634,7 +634,7 @@ const tabChange = val => { const addComplete = () => { state.nodeNameList = [...datasetDrag.value.nodeNameList] - if (!state.nodeNameList) { + if (!state.nodeNameList?.length) { columns.value = [] tableData.value = [] } @@ -1280,14 +1280,14 @@ const getDsIconName = data => {