Optimize: two-factor - remove autocomplete when typing

This commit is contained in:
2024-03-04 15:01:38 +08:00
parent db28fba694
commit 65fc6e9c28
4 changed files with 19 additions and 3 deletions

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>
</>