Isolate drawTreeArrows
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user