fix: 修复列宽记住上一次bugs

This commit is contained in:
xinxin.wu 2024-12-16 15:05:53 +08:00 committed by Craftsman
parent 4e2e6a0c47
commit 6fd28f362b
1 changed files with 1 additions and 1 deletions

View File

@ -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; // 使用上一次拖拽存储的宽度,避免组件里边使用时候初始化到最初的列宽
}