fix: autofilled in add user form

This commit is contained in:
jialin
2026-03-17 16:35:55 +08:00
committed by jialin
parent f6d5733183
commit 194b7aff2e
2 changed files with 3 additions and 1 deletions
@@ -130,7 +130,7 @@ const useModelsColumns = ({
render: (text: string, record: ListItem) => ( render: (text: string, record: ListItem) => (
<span className="flex-center" style={{ maxWidth: '100%' }}> <span className="flex-center" style={{ maxWidth: '100%' }}>
<AutoTooltip ghost> <AutoTooltip ghost>
<span className="m-r-5">{text}</span> <span>{text}</span>
</AutoTooltip> </AutoTooltip>
<ModelTag categoryKey={record.categories?.[0] || ''} /> <ModelTag categoryKey={record.categories?.[0] || ''} />
</span> </span>
+2
View File
@@ -77,6 +77,7 @@ const AddModal: React.FC<AddModalProps> = ({
]} ]}
> >
<SealInput.Input <SealInput.Input
autoComplete="off"
label={intl.formatMessage({ id: 'common.table.name' })} label={intl.formatMessage({ id: 'common.table.name' })}
required required
></SealInput.Input> ></SealInput.Input>
@@ -150,6 +151,7 @@ const AddModal: React.FC<AddModalProps> = ({
]} ]}
> >
<SealInput.Password <SealInput.Password
autoComplete={'new-password'}
label={intl.formatMessage({ id: 'common.form.password' })} label={intl.formatMessage({ id: 'common.form.password' })}
required={action === PageAction.CREATE} required={action === PageAction.CREATE}
></SealInput.Password> ></SealInput.Password>