diff --git a/app/login/page.js b/app/login/page.js index 5acf906..5da505f 100644 --- a/app/login/page.js +++ b/app/login/page.js @@ -416,6 +416,7 @@ function Login({ handleLogin }) { placeholder="请输入密码" name="password" type="password" + maxLength={15} onChange={(value) => { setLoginInfo({ ...loginInfo, password: value }); }} diff --git a/app/space/setting/spaceRefund/page.jsx b/app/space/setting/spaceRefund/page.jsx index ad6b5c3..11e6bf9 100644 --- a/app/space/setting/spaceRefund/page.jsx +++ b/app/space/setting/spaceRefund/page.jsx @@ -169,7 +169,6 @@ export default function SpaceRefund() { placeholder="请输入联系方式" onChange={(value) => setContact(value)} value={contact} - maxLength={20} className="bg-[#FFFFFF1A] text-white rounded-2xl mt-2 p-2" style={{ "--placeholder-color": "#FFFFFF80", diff --git a/components/OwnInput/index.js b/components/OwnInput/index.js index d388e75..d8e5550 100644 --- a/components/OwnInput/index.js +++ b/components/OwnInput/index.js @@ -15,6 +15,7 @@ export default function OwnInput({ className, inputClassName = "", id, + maxLength = 999, }) { return (