From 6b5d8bede4bea4ad3e9bc54cf20d53e4cf166f0b Mon Sep 17 00:00:00 2001 From: logan Date: Thu, 28 May 2026 14:41:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=A5=E8=AF=A2=E9=A1=B5=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E7=BB=86=E8=8A=82=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 点击侧边栏表名插入 db.table 格式(如 log_analytics.access_logs) - SchemaSidebar 表名: onInsert(t.name) → onInsert(`${dbName}.${t.name}`) - SchemaSidebar 字段名: onInsert(col.Field) → onInsert(`${t.name}.${col.Field}`) 2. 查询不存在的表应显示错误而非'无结果数据' - QueriesPage handleExecute: 检查 res.error 字段,有错误则 setError + 不设 result --- frontend/src/components/SchemaSidebar.tsx | 6 +++--- frontend/src/pages/QueriesPage.tsx | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/SchemaSidebar.tsx b/frontend/src/components/SchemaSidebar.tsx index 01f676a..869679a 100644 --- a/frontend/src/components/SchemaSidebar.tsx +++ b/frontend/src/components/SchemaSidebar.tsx @@ -498,8 +498,8 @@ export default function SchemaSidebar({ instanceId, database, dbType, onInsert } { e.stopPropagation(); onInsert(t.name); }} - title="点击插入表名" + onClick={(e) => { e.stopPropagation(); onInsert(`${dbName}.${t.name}`); }} + title="点击插入 库名.表名" > {t.name} @@ -519,7 +519,7 @@ export default function SchemaSidebar({ instanceId, database, dbType, onInsert } tableColumns.map(col => (