From e7e202de84914d0cd30cfa529fdac0dc6c44b565 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 25 Nov 2024 11:09:31 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E6=BA=90):=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90=E8=AF=A6=E6=83=85=E9=A1=B5=E7=9A=84?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=95=B0=E6=8D=AE=E9=9B=86=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E8=BF=9B=E5=85=A5=E5=88=B0=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=EF=BC=8C=E7=82=B9=E5=87=BB=E5=B7=A6?= =?UTF-8?q?=E4=B8=8A=E8=A7=92=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE=E6=88=96?= =?UTF-8?q?=E5=8F=B3=E4=B8=8A=E8=A7=92=E4=BF=9D=E5=AD=98=E5=B9=B6=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=8C=89=E9=92=AE=EF=BC=8C=E8=BF=94=E5=9B=9E=E7=9A=84?= =?UTF-8?q?=E6=98=AF=E6=95=B0=E6=8D=AE=E9=9B=86=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AF=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/visualized/data/datasource/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 2a4935d5c2..f5300d5ff9 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/index.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/index.vue @@ -132,6 +132,7 @@ const createDataset = (tableName?: string) => { useEmitt().emitter.emit('changeCurrentComponent', 'DatasetEditor') return } + wsCache.set('ds-info-id', nodeInfo.id) router.push({ path: '/dataset-form', query: { @@ -989,7 +990,9 @@ const loadInit = () => { } onMounted(() => { - nodeInfo.id = (route.params.id as string) || (route.query.id as string) || '' + const dsId = wsCache.get('ds-info-id') || route.params.id + nodeInfo.id = (dsId as string) || (route.query.id as string) || '' + wsCache.delete('ds-info-id') loadInit() listDs() const { opt } = router.currentRoute.value.query From 854090dd7f48c7bf50f61464717c298f07c9a918 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 25 Nov 2024 11:10:07 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9-=20hover=20=E8=83=8C=E6=99=AF=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/ToolboxCfg.vue | 3 +- .../src/layout/components/TopDoc.vue | 23 ++++++++------ .../src/layout/components/TopDocCard.vue | 31 ++++++++----------- 3 files changed, 27 insertions(+), 30 deletions(-) diff --git a/core/core-frontend/src/layout/components/ToolboxCfg.vue b/core/core-frontend/src/layout/components/ToolboxCfg.vue index e31ca8dec5..633faac003 100644 --- a/core/core-frontend/src/layout/components/ToolboxCfg.vue +++ b/core/core-frontend/src/layout/components/ToolboxCfg.vue @@ -83,9 +83,8 @@ onMounted(() => { diff --git a/core/core-frontend/src/layout/components/TopDocCard.vue b/core/core-frontend/src/layout/components/TopDocCard.vue index 0e4797b747..41211ac028 100644 --- a/core/core-frontend/src/layout/components/TopDocCard.vue +++ b/core/core-frontend/src/layout/components/TopDocCard.vue @@ -27,33 +27,28 @@ const openBlank = () => {