登录页账号输入框默认改为空

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-06 15:45:29 +08:00
parent eae13737ff
commit 008f92ffe3
+1 -1
View File
@@ -20,7 +20,7 @@ import { cn } from '@/lib/cn'
export function Auth() {
const navigate = useNavigate()
const [username, setUsername] = useState('admin')
const [username, setUsername] = useState('')
const [password, setPassword] = useState('')
const [confirmPassword, setConfirmPassword] = useState('') // 仅设密码时用
const [showPwd, setShowPwd] = useState(false)