feat: 关闭已有刷新页面的定时轮询

This commit is contained in:
GJ committed 2026-09-04 17:38:59 +08:00
1 parent e6e0f08072
commit db29367c69
10 files changed
+122 -80

No files matched your search

@@ -12,7 +12,8 @@ import type { Checkpoint } from './types'
const props = defineProps<{ projectId: string; checkpoints: Checkpoint[] }>()
const open = defineModel<boolean>('open', { default: false })
const key = computed(() => (open.value ? props.projectId : ''))
const query = usePolling(key, (id, signal) => (id ? loadWorkflowDiagnostics(id, signal) : Promise.resolve(null)), 12000)
/** 诊断弹窗已有刷新按钮,打开后只读取一次。 */
const query = usePolling(key, (id, signal) => (id ? loadWorkflowDiagnostics(id, signal) : Promise.resolve(null)), false)
const tab = ref('timeline')
const workflow = ref('all')
const search = ref('')