docs: 함수 설명 추가 및 수정, 불필요 코드 삭제

This commit is contained in:
Daseul Kim 2025-02-14 11:15:52 +09:00
parent dce3a65ba2
commit 68c31166a5

View File

@ -22,10 +22,10 @@ export function useEstimate() {
/**
* 도면 견적서 저장
*
* @param {Object} estimateParam - 견적서 저장 데이터
*/
const saveEstimate = async (estimateParam) => {
// 로딩 임시 주석
// setIsGlobalLoading(true)
const userId = loginUserState.userId
const saleStoreId = managementStateLoaded.saleStoreId
@ -56,7 +56,7 @@ export function useEstimate() {
await promisePost({ url: '/api/estimate/save-estimate', data: saveEstimateData })
.then(async () => {
// 견적서 저장이 완료되면 견적서 페이지로 이동
/* 견적서 저장이 완료되면 견적서 페이지로 이동 */
moveEstimate(planNo, objectNo)
})
.catch((error) => {
@ -67,6 +67,9 @@ export function useEstimate() {
/**
* 견적서 페이지로 이동
*
* @param {string} planNo - 플랜번호
* @param {string} objectNo - 물건번호
*/
const moveEstimate = (planNo, objectNo) => {
router.push(`/floor-plan/estimate/5?pid=${planNo}&objectNo=${objectNo}`)