dev #128
@ -1,7 +1,9 @@
|
||||
import { useAxios } from '@/hooks/useAxios'
|
||||
import { useMessage } from '@/hooks/useMessage'
|
||||
import { useSwal } from '@/hooks/useSwal'
|
||||
import { sessionStore } from '@/store/commonAtom'
|
||||
import { getQueryString } from '@/util/common-utils'
|
||||
import { useRecoilValue } from 'recoil'
|
||||
|
||||
/**
|
||||
* 마스터 컨트롤러 훅
|
||||
@ -11,6 +13,7 @@ export function useMasterController() {
|
||||
const { get, post, put } = useAxios()
|
||||
const { getMessage } = useMessage()
|
||||
const { swalFire } = useSwal()
|
||||
const sessionState = useRecoilValue(sessionStore)
|
||||
|
||||
/**
|
||||
* 지붕재 목록 조회
|
||||
@ -34,7 +37,7 @@ export function useMasterController() {
|
||||
return null
|
||||
}
|
||||
const paramString = `?${paramArr.map((item) => `arrRoofMatlCd=${item}`).join('&')}`
|
||||
return await get({ url: `/api/v1/master/getModuleTypeItemList${paramString}` }).then((res) => {
|
||||
return await get({ url: `/api/v1/master/getModuleTypeItemList${paramString}&storeId=${sessionState.storeId}` }).then((res) => {
|
||||
// console.log('🚀🚀 ~ getModuleTypeItemList ~ res:', res)
|
||||
return res
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user