修复登录任务页面加载慢的问题

- 后端: list_tasks 用 IN 批量查 Account 替代逐条查询,消除 N+1
- 后端: list_accounts 用 joinedload 预加载 assigned_user,消除懒加载
- 前端: 首次加载 accounts 和 tasks 并行请求

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
yml2213
2026-06-22 19:34:13 +08:00
co-authored by Claude Fable 5
parent a996028f5b
commit accb76b9da
3 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ export default function LoginTasksPage() {
};
useEffect(() => {
loadAccounts();
Promise.all([loadAccounts(), loadTasks()]);
}, []);
// 日志自动滚动到底部