diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index e0a58406..609ba73e 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -23,6 +23,7 @@ import { useSearchParams } from 'next/navigation' import { usePlan } from '@/hooks/usePlan' import { usePopup } from '@/hooks/usePopup' import { useSwal } from '@/hooks/useSwal' +import { QcastContext } from '@/app/QcastProvider' export default function Estimate({}) { const [uniqueData, setUniqueData] = useState([]) @@ -81,6 +82,7 @@ export default function Estimate({}) { const [specialNoteList, setSpecialNoteList] = useState([]) const [popShowSpecialNoteList, setPopShowSpecialNoteList] = useState([]) + const { setIsGlobalLoading } = useContext(QcastContext) const globalLocaleState = useRecoilValue(globalLocaleStore) const { get, post, promisePost } = useAxios(globalLocaleState) @@ -490,6 +492,7 @@ export default function Estimate({}) { } } + setIsGlobalLoading(true) await promisePost({ url: '/api/estimate/price/item-price-list', data: param }).then((res) => { let updateList = [] if (res) { @@ -537,6 +540,7 @@ export default function Estimate({}) { } } } + setIsGlobalLoading(false) }) }