"use client" import { useState } from "react" import { useRouter } from "next/navigation" import { Lock, User, ShieldCheck } from "lucide-react" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { useStore } from "@/lib/store" export default function AdminLoginPage() { const router = useRouter() const { adminLogin } = useStore() const [username, setUsername] = useState("") const [password, setPassword] = useState("") const [error, setError] = useState("") const [loading, setLoading] = useState(false) const handleLogin = async () => { setError("") setLoading(true) await new Promise((resolve) => setTimeout(resolve, 500)) const success = adminLogin(username, password) if (success) { router.push("/admin") } else { setError("用户名或密码错误") setLoading(false) } } return (
一场SOUL的创业实验场
默认账号: admin /{" "} key123456
Soul创业实验场 · 后台管理系统