diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 356e3da..454fd52 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -124,7 +124,15 @@ export default function App() { > 📜 新建军令 - ⟳ {countdown}s + diff --git a/src/frontend/src/store.ts b/src/frontend/src/store.ts index 3099e30..7eddc78 100644 --- a/src/frontend/src/store.ts +++ b/src/frontend/src/store.ts @@ -617,6 +617,7 @@ function getPollInterval(): number { export function startPolling() { if (_cdTimer) return; + (window as any).__markActivity = markActivity; useStore.getState().loadAll(); _cdTimer = setInterval(() => { // P0-1: 有输入焦点时跳过整个 loadAll