From 3d2395bccb26e0952181367bbf7364598dac47c4 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Sun, 28 Apr 2024 15:36:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B7=A5=E4=BD=9C=E5=8F=B0=E8=B7=B3=E8=BD=AC=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E5=AF=B9=E5=BA=94=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E5=9C=A8=E5=88=97=E8=A1=A8=E6=9C=AA=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/visualized/data/datasource/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/visualized/data/datasource/index.vue b/core/core-frontend/src/views/visualized/data/datasource/index.vue index e1c3e1c681..3e0dcb80ba 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/index.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/index.vue @@ -402,9 +402,9 @@ const listDs = () => { if (!!id) { Object.assign(nodeInfo, cloneDeep(defaultInfo)) dfsDatasourceTree(state.datasourceTree, id) - nextTick(() => { - dsListTree.value.setCurrentKey(id, true) - }) + setTimeout(() => { + dsListTree.value.setCurrentKey(nodeInfo.id, true) + }, 100) } }) }