지붕재선택 메뉴의 데이터 동기화
This commit is contained in:
parent
dcd7ace830
commit
e285210927
@ -126,6 +126,9 @@ export function useRoofAllocationSetting(id) {
|
|||||||
roofAngle: item.roofAngle,
|
roofAngle: item.roofAngle,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
if(roofList.length > 0){
|
||||||
|
roofsArray = roofList
|
||||||
}else{
|
}else{
|
||||||
roofsArray = [
|
roofsArray = [
|
||||||
{
|
{
|
||||||
@ -143,6 +146,7 @@ export function useRoofAllocationSetting(id) {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 데이터 설정
|
* 데이터 설정
|
||||||
@ -182,6 +186,9 @@ export function useRoofAllocationSetting(id) {
|
|||||||
roofSizeSet: '' + res[0].roofSizeSet,
|
roofSizeSet: '' + res[0].roofSizeSet,
|
||||||
roofAngleSet: '' + res[0].roofAngleSet,
|
roofAngleSet: '' + res[0].roofAngleSet,
|
||||||
})
|
})
|
||||||
|
//데이터 동기화
|
||||||
|
setCurrentRoofList(selectRoofs)
|
||||||
|
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Data fetching error:', error)
|
console.error('Data fetching error:', error)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user