调整所有返工接口的响应返回数据,为兼容RPC调用做支持

This commit is contained in:
柳清爽
2025-04-22 15:04:38 +08:00
parent 0503260040
commit 0896686934
27 changed files with 132 additions and 297 deletions

View File

@@ -25,7 +25,7 @@ export default function NewAdminPage() {
const router = useRouter()
const { toast } = useToast()
const [account, setAccount] = useState("")
const [name, setName] = useState("")
const [username, setUserName] = useState("")
const [password, setPassword] = useState("")
const [confirmPassword, setConfirmPassword] = useState("")
const [isLoading, setIsLoading] = useState(true)
@@ -172,12 +172,12 @@ export default function NewAdminPage() {
</div>
<div className="space-y-2">
<Label htmlFor="name"></Label>
<Label htmlFor="username"></Label>
<Input
id="name"
value={name}
onChange={(e) => setName(e.target.value)}
placeholder="请输入名"
id="username"
value={username}
onChange={(e) => setUserName(e.target.value)}
placeholder="请输入用户名"
required
/>
</div>