feat(backend): update dashboard router, seed demo data, and investor agents page

This commit is contained in:
selfrelease
2026-07-21 18:05:49 +08:00
parent af91d843d8
commit 3bae5fbfc1
3 changed files with 728 additions and 60 deletions
+8 -2
View File
@@ -26,8 +26,14 @@ export default function AgentsPage() {
const load = () => {
listAgentExecutions()
.then((resp) => setItems((resp.data as AgentExecution[]) ?? []))
.catch(() => setItems([]))
.then((resp) => {
console.log("[agents] API response:", resp);
setItems((resp.data as AgentExecution[]) ?? []);
})
.catch((err) => {
console.error("[agents] API error:", err);
setItems([]);
})
.finally(() => setIsLoading(false));
};