feat: 更新拖放功能,重构状态管理,优化工作流组件,添加节点和边的确认删除功能

This commit is contained in:
jxxghp
2025-02-26 21:11:24 +08:00
parent 6d5d4354d9
commit 3d64382c9b
6 changed files with 234 additions and 70 deletions

View File

@@ -13,9 +13,6 @@ const appMode = inject('pwaMode') && display.mdAndDown.value
// 是否刷新
const isRefreshed = ref(false)
// 自动刷新定时器
const autoRefresh = ref<NodeJS.Timeout | null>(null)
// 新增对话框
const addDialog = ref(false)
@@ -40,13 +37,6 @@ function addDone() {
onMounted(() => {
fetchData()
autoRefresh.value = setInterval(fetchData, 30000)
})
onUnmounted(() => {
if (autoRefresh.value) {
clearInterval(autoRefresh.value)
}
})
onActivated(() => {