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