rearrange pages

This commit is contained in:
2025-04-01 23:44:01 +08:00
parent bdae5c164c
commit 4b7fb7a887
5 changed files with 564 additions and 622 deletions

View File

@@ -14,10 +14,10 @@ export default function LoginPage() {
const [isLoading, setIsLoading] = useState(false);
const [message, setMessage] = useState({ type: '', content: '' });
// 如果用户已登录,重定向到仪表板
// 如果用户已登录,重定向到首页
useEffect(() => {
if (user) {
router.push('/dashboard');
router.push('/');
}
}, [user, router]);