mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-12 16:01:35 +08:00
feat: 更新拖放功能,重构状态管理,优化工作流组件,添加节点和边的确认删除功能
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user