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