fix : 재귀오류 해결

This commit is contained in:
Yesol Choi
2025-06-06 17:52:36 +09:00
parent 3ca7a6620d
commit 47a644fef7

View File

@@ -23,13 +23,12 @@ onBeforeMount(() => {
}
})
// 부모에게 넘길 결재선 전체
const apprLine = computed(() => {
function getApprLine(){
return initiator.value ? [initiator.value, ...approvers.value] : [...approvers.value]
})
}
watch(apprLine, (val) => {
model.value = val
watch([initiator, approvers], () => {
model.value = getApprLine()
})