Files
SuperJump/src/app/page.tsx
T
jacobxu666andClaude Opus 4.8 af7a144d58 第一期:家庭自学打卡系统
- 家长手机号登录 + 孩子设备一次性激活(长期会话)
- 周模板自动生成每日任务快照,支持拍照凭证直传对象存储
- 连击计算(空白日自动达成)、家长补卡带标记
- 家长端三标签:今日概览 / 任务模板 / 设备管理
- Docker 独立输出,经 Traefik 接入 jump.hn12301.net

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-02 23:19:13 +08:00

10 lines
310 B
TypeScript

import { redirect } from "next/navigation";
import { getSessionUser } from "@/lib/auth";
// 根路由:按会话角色分发到对应入口
export default async function Home() {
const user = await getSessionUser();
if (!user) redirect("/login");
redirect(user.role === "parent" ? "/parent" : "/kid");
}