fix: 빌드 에러 및 포트 동기화 수정

This commit is contained in:
2026-04-21 11:40:54 +09:00
parent 153e422180
commit 34baea9143
7 changed files with 106 additions and 31 deletions

View File

@@ -15,12 +15,14 @@ export interface MasterAssetData {
// 동료 코드 호환용 통합 배열 (프론트엔드 로직용)
sw: SoftwareAsset[];
hw: HardwareAsset[];
}
export interface AppState {
activeCategory: 'dashboard' | 'hw' | 'sw';
activeSubTab: string; // '대시보드', '개인PC', '서버', '스토리지', '전산비품', '구독SW', '영구SW', '클라우드'
activeCategory: 'dashboard' | 'hw' | 'sw' | 'ops';
activeSubTab: string;
masterData: MasterAssetData;
activeCharts: any[];
}
// 초기 상태
@@ -38,8 +40,10 @@ export const state: AppState = {
cloud: [],
sw: [], // 호환용
swUsers: [],
logs: []
}
logs: [],
hw: []
},
activeCharts: []
};
/**
@@ -83,12 +87,19 @@ export async function loadMasterDataFromDB() {
}
}
// 동료 코드 호환을 위한 통합 sw 배열 생성
// 동료 코드 호환을 위한 통합 sw/hw 배열 생성
state.masterData.sw = [
...state.masterData.subSw,
...state.masterData.permSw,
...state.masterData.cloud
];
state.masterData.hw = [
...state.masterData.pc,
...state.masterData.server,
...state.masterData.storage,
...state.masterData.equip,
...state.masterData.mobile
];
console.log('✅ 모든 DB 데이터 로드 및 통합 완료');
return true;