From 582e32bc021788104c1d592457f5a873b0975d6c Mon Sep 17 00:00:00 2001 From: "DESKTOP-6E8S9S5\\LEE" Date: Mon, 15 Jun 2026 16:40:11 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=A0=84=EC=8B=9C=EB=AE=AC=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=ED=8C=9D=EC=97=85=EC=B0=BD=20=EC=98=A4?= =?UTF-8?q?=ED=94=88=20=EC=86=8C=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/header/Header.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/header/Header.jsx b/src/components/header/Header.jsx index 13105ad8..dce8e874 100644 --- a/src/components/header/Header.jsx +++ b/src/components/header/Header.jsx @@ -27,6 +27,7 @@ import { roofMaterialsAtom } from '@/store/settingAtom' import { useMasterController } from '@/hooks/common/useMasterController' import { ROOF_MATERIAL_LAYOUT } from '@/components/floor-plan/modal/placementShape/PlacementShapeSetting' import { useSwal } from '@/hooks/useSwal' +import { logger } from '@/util/logger' export const ToggleonMouse = (e, act, target) => { const listWrap = e.target.closest(target) @@ -164,11 +165,12 @@ export default function Header(props) { getAutoLoginParam() }, [userSession]) - const openEconomicSimulation = async () => { + const openEconomicSimulation = async () => { const encRes = await promiseGet({ url: '/api/pwrGnrSimulation/encData', - params: { saleStoreId: sessionState.saleStoreId, userId: sessionState.userId }, + option: { params: { saleStoreId: sessionState.storeId, userId: sessionState.userId } }, }) + const { encSaleStoreId, encUserId } = encRes.data if (!encSaleStoreId || !encUserId) return @@ -176,7 +178,7 @@ export default function Header(props) { const authRes = await fetch(process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL, { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ encSaleStoreId, encUserId }), + body: JSON.stringify({ encStoreId: encSaleStoreId, encRegId: encUserId }), }) if (authRes.ok) { -- 2.47.2