优化:缓存查询与智能分析页面,修复组织下钻和草稿保留

This commit is contained in:
2026-10-23 16:06:59 +08:00
parent 6394e057bf
commit f14400bd60
9 changed files with 261 additions and 50 deletions
+5
View File
@@ -0,0 +1,5 @@
import { createContext, useContext } from 'react';
export const WORKSPACE_INVALIDATED = 'quality-workspace-invalidated';
export const PageCacheContext = createContext({ active: true, initialSearch: undefined as string | undefined, refreshKey: 0, onLocationChange: (_search: string) => {} });
export const usePageCache = () => useContext(PageCacheContext);