From 0ce35ba12e0f88bd2e5e6eddd851b14b5b2f96d6 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 20 Jan 2025 14:50:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/copilot/index.vue | 13 ++++++++++--- .../src/views/visualized/data/datasource/index.vue | 3 +++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/copilot/index.vue b/core/core-frontend/src/views/copilot/index.vue index 8241342e49..1c11baf05f 100644 --- a/core/core-frontend/src/views/copilot/index.vue +++ b/core/core-frontend/src/views/copilot/index.vue @@ -335,6 +335,7 @@ const queryAnswer = (event?: KeyboardEvent) => { +
@@ -587,7 +588,7 @@ const queryAnswer = (event?: KeyboardEvent) => { .field-q { position: relative; height: 49px; - padding-left: 8px; + padding: 0 8px; &.open { max-height: 50%; @@ -624,8 +625,14 @@ const queryAnswer = (event?: KeyboardEvent) => { } .field-d { - max-height: calc(100% - 50px); - border-bottom: 1px solid rgba(31, 35, 41, 0.15); + max-height: calc(100% - 52px); + } + + .line-bottom { + background: rgba(31, 35, 41, 0.15); + height: 1px; + width: calc(100% - 16px); + margin-left: 8px; } } } 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 ed73706633..ca74e84f43 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/index.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/index.vue @@ -507,6 +507,9 @@ const listDs = () => { Object.assign(nodeInfo, cloneDeep(defaultInfo)) dfsDatasourceTree(state.datasourceTree, id) setTimeout(() => { + if (dsName.value) { + dsListTree.value.filter(dsName.value) + } dsListTree.value.setCurrentKey(nodeInfo.id, true) }, 100) }