From 3269b2eef3f8af04525c01b91cb0355e5585e60a Mon Sep 17 00:00:00 2001 From: xiongxiao Date: Fri, 13 Mar 2026 05:23:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=9D=A1?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8D=E6=98=BE=E7=A4=BA=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BC=98=E5=8C=96=E5=BC=B9?= =?UTF-8?q?=E7=AA=97UI=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复数组解构错误导致单条数据时不显示表格 - 优化DetailsDialog弹窗布局,内容过多时按钮始终可见 --- src/pages/query-view/components/DetailsDialog.tsx | 12 ++++++------ src/pages/query-view/index.tsx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/query-view/components/DetailsDialog.tsx b/src/pages/query-view/components/DetailsDialog.tsx index 01e050f..10e08c9 100644 --- a/src/pages/query-view/components/DetailsDialog.tsx +++ b/src/pages/query-view/components/DetailsDialog.tsx @@ -539,12 +539,12 @@ export const DetailsDialog = () => { - - + + 详情信息 -
+
{queryViewStore.allDetailsTabs.map((tab) => (
-
+
{/* 第一个标签页:详情信息 */} {queryViewStore.detailsActiveTab === 'details' && ( @@ -575,9 +575,9 @@ export const DetailsDialog = () => { )} - {/* 第三个标签页:响应 */} + {/* 第四个标签页:响应 */} {queryViewStore.detailsActiveTab === 'response' && ( -
+
)} diff --git a/src/pages/query-view/index.tsx b/src/pages/query-view/index.tsx index 5238e51..4d4d876 100644 --- a/src/pages/query-view/index.tsx +++ b/src/pages/query-view/index.tsx @@ -67,7 +67,7 @@ export const QueryView = (props: Props) => { setIsList(true); } setData(response.data.list) - const [_, firstItem] = response.data.list || [] + const [firstItem] = response.data.list || [] if (firstItem) { const cols: ColumnDef[] = Object.keys(firstItem).map(key => ({ accessorKey: key,