auto-sync: 2026-05-20 21:07:16

This commit is contained in:
cfdaily
2026-05-20 21:07:16 +08:00
parent a902fc8c27
commit 6ce6094fa9
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -124,7 +124,15 @@ export default function App() {
>
📜
</button>
<span style={{ fontSize: 11, color: 'var(--muted)' }}> {countdown}s</span>
<button
onClick={() => { loadAll(); toast('已刷新'); }}
style={{
fontSize: 11, padding: '2px 8px', borderRadius: 4,
border: '1px solid var(--line)', background: 'var(--panel)',
color: 'var(--fg)', cursor: 'pointer', marginLeft: 6,
}}
title="手动刷新"
>{v2tasksLoading ? '⟳ ...' : '⟳ 刷新'}</button>
</div>
</div>
+1
View File
@@ -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