This commit is contained in:
X1627315083@163.com
2026-03-17 09:55:57 +08:00
parent 04be0b5930
commit b2490ae715
5 changed files with 14 additions and 7 deletions

View File

@@ -64,7 +64,7 @@
<script setup lang="ts">
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { computed, ref, watch, onMounted, nextTick, provide, onBeforeMount } from 'vue'
import { computed, ref, watch, onMounted, nextTick, provide, onBeforeUnmount } from 'vue'
import { useLayout } from '@/utils/treeDiagram'
import { NODE_TYPE, NODE_COMPONENT } from './tools/index.d'
// 组件
@@ -252,7 +252,7 @@
})
}
})
onBeforeMount(() => {
onBeforeUnmount(() => {
stateManager.dispose()
eventManager.dispose()
flowManager.dispose()