Compare commits

..

No commits in common. "f351a852e1a46fe5b3353e326ee38c54dace4548" and "576006fc28d39412c0da5f4661a0fd76cbc8aa58" have entirely different histories.

View File

@ -27,7 +27,6 @@ import { roofMaterialsAtom } from '@/store/settingAtom'
import { useMasterController } from '@/hooks/common/useMasterController' import { useMasterController } from '@/hooks/common/useMasterController'
import { ROOF_MATERIAL_LAYOUT } from '@/components/floor-plan/modal/placementShape/PlacementShapeSetting' import { ROOF_MATERIAL_LAYOUT } from '@/components/floor-plan/modal/placementShape/PlacementShapeSetting'
import { useSwal } from '@/hooks/useSwal' import { useSwal } from '@/hooks/useSwal'
import { logger } from '@/util/logger'
export const ToggleonMouse = (e, act, target) => { export const ToggleonMouse = (e, act, target) => {
const listWrap = e.target.closest(target) const listWrap = e.target.closest(target)
@ -168,9 +167,8 @@ export default function Header(props) {
const openEconomicSimulation = async () => { const openEconomicSimulation = async () => {
const encRes = await promiseGet({ const encRes = await promiseGet({
url: '/api/pwrGnrSimulation/encData', url: '/api/pwrGnrSimulation/encData',
option: { params: { saleStoreId: sessionState.storeId, userId: sessionState.userId } }, params: { saleStoreId: sessionState.saleStoreId, userId: sessionState.userId },
}) })
const { encSaleStoreId, encUserId } = encRes.data const { encSaleStoreId, encUserId } = encRes.data
if (!encSaleStoreId || !encUserId) return if (!encSaleStoreId || !encUserId) return
@ -178,7 +176,7 @@ export default function Header(props) {
const authRes = await fetch(process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL, { const authRes = await fetch(process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL, {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ encStoreId: encSaleStoreId, encRegId: encUserId }), body: JSON.stringify({ encSaleStoreId, encUserId }),
}) })
if (authRes.ok) { if (authRes.ok) {