From 6fd28f362b3bc69559e2e3080d6ee5f5e74a4b87 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Mon, 16 Dec 2024 15:05:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=97=E5=AE=BD?= =?UTF-8?q?=E8=AE=B0=E4=BD=8F=E4=B8=8A=E4=B8=80=E6=AC=A1bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/useTableStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/useTableStore.ts b/frontend/src/hooks/useTableStore.ts index 5c5f9f11e7..36fb4aae29 100644 --- a/frontend/src/hooks/useTableStore.ts +++ b/frontend/src/hooks/useTableStore.ts @@ -79,7 +79,7 @@ export default function useTableStore() { if (!isEqual) { column.forEach((col) => { - const storedCol = oldColumn.find((sc) => sc.dataIndex === col.dataIndex); + const storedCol = tableColumnsMap.column.find((sc) => sc.dataIndex === col.dataIndex); if (storedCol) { col.width = storedCol.width; // 使用上一次拖拽存储的宽度,避免组件里边使用时候初始化到最初的列宽 }