feat: Phase 1-3 全部完成 — 沙盒增强、学情分析、学习路径

This commit is contained in:
yuzhiran-dev
2026-05-18 09:48:51 +08:00
commit 11bb86854c
277 changed files with 37755 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
export async function generateStaticParams() {
try {
const base = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000';
const res = await fetch(`${base}/api/v1/users`, {
headers: { 'Content-Type': 'application/json' },
});
const data = await res.json();
const users = data.items || [];
if (users.length === 0) return [{ id: '1' }];
return users.map((u: any) => ({ id: String(u.id) }));
} catch {
return [{ id: '1' }];
}
}
import UserProfilePage from './user-profile';
export default function Page() {
return <UserProfilePage />;
}