격자 저장문제 수정

This commit is contained in:
kjs
2025-11-06 17:01:13 +09:00
parent 786576bb76
commit f2500865a6
16 changed files with 3300 additions and 401 deletions

View File

@@ -354,7 +354,10 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
if (!tableConfig.selectedTable) return;
try {
const cacheKey = `columns_${tableConfig.selectedTable}`;
// 🔥 FIX: 캐시 키에 회사 코드 포함 (멀티테넌시 지원)
const currentUser = JSON.parse(localStorage.getItem("currentUser") || "{}");
const companyCode = currentUser.companyCode || "UNKNOWN";
const cacheKey = `columns_${tableConfig.selectedTable}_${companyCode}`;
const cached = tableColumnCache.get(cacheKey);
if (cached && Date.now() - cached.timestamp < TABLE_CACHE_TTL) {
const labels: Record<string, string> = {};