dev #918

Merged
ysCha merged 2 commits from dev into dev-deploy 2026-06-15 16:42:03 +09:00

View File

@ -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)
@ -167,8 +168,9 @@ export default function Header(props) {
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) {