发布 v1.10 #5

Merged
czm merged 147 commits from develop into main 2026-08-20 11:36:27 +08:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit caa1f07b66 - Show all commits

View File

@@ -37,4 +37,12 @@ describe('route cache safety', () => {
expect(unrelatedRoute.meta?.keepAlive).toBe(true); expect(unrelatedRoute.meta?.keepAlive).toBe(true);
}); });
it('disables stale approval menu caching before opening hidden details', () => {
const approvalRoute = createRoute('/sys/approval');
disableUnsafeMenuRouteCaching([approvalRoute]);
expect(approvalRoute.meta?.keepAlive).toBe(false);
});
}); });

View File

@@ -7,6 +7,7 @@ const UNSAFE_KEEP_ALIVE_MENU_PATHS = new Set([
'/ai/skill', '/ai/skill',
'/ai/workflow', '/ai/workflow',
'/dashboard/workspace', '/dashboard/workspace',
'/sys/approval',
'/sys/sysAccount', '/sys/sysAccount',
]); ]);