프리티어 변경

필터링 AND OR 조건 추가
데이터 JSON 구조 변경
오류 수정
This commit is contained in:
2026-02-22 15:45:22 +09:00
parent 42b5c0f047
commit f569000ba5
8 changed files with 1174 additions and 904 deletions

View File

@@ -33,6 +33,9 @@ export const state = {
/** 화면 보기 모드 ('grid' | 'table') */
viewMode: 'grid',
/** 태그 필터리 모드 ('AND' | 'OR') */
tagMode: 'AND',
/** 장바구니/내보내기 등을 위해 선택된 상품 ID 세트 (세션 스토리지 복원) */
selectedIds: new Set(JSON.parse(sessionStorage.getItem('selectedProductIds') || '[]')),
@@ -60,4 +63,4 @@ export const state = {
export function saveSelection() {
const idsArray = Array.from(state.selectedIds);
sessionStorage.setItem('selectedProductIds', JSON.stringify(idsArray));
}
}