Fix 2 bugs. Optimize 1 code. #40

Merged
FatttSnake merged 3 commits from FatttSnake into dev 2024-03-04 15:06:51 +08:00
4 changed files with 19 additions and 3 deletions
Showing only changes of commit 65fc6e9c28 - Show all commits

View File

@@ -204,6 +204,7 @@ const Forget = () => {
]}
>
<AntdInput.Password
id={'forget-password'}
addonBefore={
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
}
@@ -231,6 +232,7 @@ const Forget = () => {
]}
>
<AntdInput.Password
id={'forget-password-confirm'}
addonBefore={'确认密码'}
placeholder={'确认密码'}
disabled={isChanging}

View File

@@ -134,7 +134,11 @@ const SignIn = () => {
style={{ marginTop: 10 }}
rules={[{ required: true, len: 6 }]}
>
<AntdInput showCount maxLength={6} />
<AntdInput
showCount
maxLength={6}
autoComplete={'off'}
/>
</AntdForm.Item>
</AntdForm>
</>

View File

@@ -177,6 +177,7 @@ const SignUp = () => {
]}
>
<AntdInput.Password
id={'sign-up-password'}
prefix={<Icon component={IconOxygenPassword} />}
placeholder={'密码'}
disabled={isSigningUp}
@@ -199,6 +200,7 @@ const SignUp = () => {
]}
>
<AntdInput.Password
id={'sign-up-password-confirm'}
prefix={<Icon component={IconOxygenPassword} />}
placeholder={'确认密码'}
disabled={isSigningUp}

View File

@@ -257,7 +257,11 @@ const User = () => {
style={{ marginTop: 10 }}
rules={[{ required: true, len: 6 }]}
>
<AntdInput showCount maxLength={6} />
<AntdInput
showCount
maxLength={6}
autoComplete={'off'}
/>
</AntdForm.Item>
</AntdForm>
</>
@@ -336,7 +340,11 @@ const User = () => {
style={{ marginTop: 10, marginRight: 30 }}
rules={[{ required: true, len: 6 }]}
>
<AntdInput showCount maxLength={6} />
<AntdInput
showCount
maxLength={6}
autoComplete={'off'}
/>
</AntdForm.Item>
</AntdForm>
</>