fix: refresh cached inbound task lists

This commit is contained in:
2026-08-13 19:38:20 +08:00
parent 69a0093d99
commit 5489bff92f
2 changed files with 19 additions and 1 deletions
@@ -17,4 +17,14 @@ describe('InboundTaskList measurement scope', () => {
expect(source).toContain("access.can('platform:firstleg:inbound:view') && (row as InboundOrderSummary).orderId")
expect(source).not.toContain("name: 'inbound-order-detail', params: { inboundId: row.id }")
})
it('refreshes cached task lists when users return from measurement work', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
expect(source).toContain('onActivated(() => {')
expect(source).toContain('if (!activatedOnce)')
expect(source).toContain('activatedOnce = true')
expect(source).toContain('void loadTasks()')
expect(source).toContain('onMounted(() => { void loadOptions(); void loadTasks() })')
})
})