From ed5789284731db72e7ec6a45bff063d34b48386a Mon Sep 17 00:00:00 2001 From: gujiangjiang Date: Thu, 9 Oct 2025 00:19:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=BE=93=E5=85=A5=E6=A1=86=E6=97=A0=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/auth/Register.tsx | 68 ++++++++++++---------------- 1 file changed, 28 insertions(+), 40 deletions(-) diff --git a/frontend/src/pages/auth/Register.tsx b/frontend/src/pages/auth/Register.tsx index 8660182..13d0707 100644 --- a/frontend/src/pages/auth/Register.tsx +++ b/frontend/src/pages/auth/Register.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react"; // 导入 useEffect import { useNavigate, Link } from "react-router-dom"; import { Flex, Heading, Text } from "@radix-ui/themes"; -import { Button, Card } from "@/components/ui"; +import { Button, Card, Input } from "@/components/ui"; // 导入 Input 组件 import { useAuth } from "../../providers/AuthProvider"; import { useTranslation } from "react-i18next"; import { getAllowNewUserRegistration } from "../../api/settings"; // 导入 API @@ -86,48 +86,36 @@ const Register = () => {
-
- setUsername(e.target.value)} - required - className="text-input" - /> -
+ setUsername(e.target.value)} + required + /> -
- setEmail(e.target.value)} - required - className="text-input" - /> -
+ setEmail(e.target.value)} + required + /> -
- setPassword(e.target.value)} - required - className="text-input" - /> -
+ setPassword(e.target.value)} + required + /> -
- setConfirmPassword(e.target.value)} - required - className="text-input" - /> -
+ setConfirmPassword(e.target.value)} + required + />