修复(履约渠道): 收敛管道事件避免待办自动刷新

This commit is contained in:
yml
2026-11-18 19:54:01 +08:00
parent 86c8417d4b
commit 97a98ac162
5 changed files with 52 additions and 3 deletions
@@ -26,6 +26,12 @@ test('履约管道状态由后台 SSE 失效刷新,不再 30 秒轮询', () =>
assert.match(page, /SSE\s+自动刷新/)
assert.ok(layout.includes("event.type === 'fulfillment_pipeline.changed'"))
assert.ok(layout.includes("queryKey: ['fulfillment-pipelines']"))
const pipelineRealtimeBlock = layout.slice(
layout.indexOf("event.type === 'fulfillment_pipeline.changed'"),
layout.indexOf("event.type === 'work_order.changed'"),
)
assert.ok(!pipelineRealtimeBlock.includes("queryKey: ['fulfillment-pending']"))
assert.ok(page.includes('loading={query.isLoading}'))
})
test('公共订单 SSE 允许匿名连接且只携带重读信号', () => {