Isolate drawTreeArrows

This commit is contained in:
2024-11-24 11:26:21 +01:00
parent 913f6d6539
commit fc402120ba

View File

@@ -21,7 +21,7 @@ const start = ref(null)
const arrows = []
onMounted(() => {
function drawTreeArrows() {
if(start.value == null) return;
for(let dest of treeItems.value) {
console.log(dest)
@@ -46,6 +46,10 @@ onMounted(() => {
})
arrows.push(arrow)
}
}
onMounted(() => {
drawTreeArrows()
})
onUnmounted(() => {
for(let arrow of arrows) {