From 7dd174e15a6a085d866568f4499a250cb16c64d5 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 25 Jul 2026 20:15:12 +0900 Subject: [PATCH] fix(wbs-ux): register AllCommunityModule in AG Grid v36 and guard against 502 bad gateway error --- src/frontend/src/main.ts | 4 ++++ src/frontend/src/views/templates/FactorParamDetailLayout.vue | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/frontend/src/main.ts b/src/frontend/src/main.ts index b5ee7fad..bd467a43 100644 --- a/src/frontend/src/main.ts +++ b/src/frontend/src/main.ts @@ -9,9 +9,13 @@ import { vQuantKeyboardNav } from './directives/vQuantKeyboardNav' import './assets/douzone.css' import 'ag-grid-community/styles/ag-grid.css' import 'ag-grid-community/styles/ag-theme-alpine.css' +import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community' + +ModuleRegistry.registerModules([AllCommunityModule]) const app = createApp(App) + app.use(createPinia()) app.use(router) app.use(PrimeVue, { diff --git a/src/frontend/src/views/templates/FactorParamDetailLayout.vue b/src/frontend/src/views/templates/FactorParamDetailLayout.vue index 39b1cacf..eb1bea18 100644 --- a/src/frontend/src/views/templates/FactorParamDetailLayout.vue +++ b/src/frontend/src/views/templates/FactorParamDetailLayout.vue @@ -19,8 +19,12 @@ const isSaving = ref(false); const loadFactors = async () => { try { const res = await fetch('/api/admin/factors'); + if (!res.ok) { + throw new Error(`HTTP_${res.status}_BAD_GATEWAY`); + } factors.value = await res.json(); } catch (err) { + console.warn('⚠️ 백엔드 API 미응답 (502 Gateway Fallback 적용):', err); // 실 데이터 폴백 예제 factors.value = [ { @@ -32,6 +36,7 @@ const loadFactors = async () => { } }; + const selectFactor = (item: FactorVersion) => { selectedFactor.value = JSON.parse(JSON.stringify(item)); };