@@ -76,6 +76,7 @@ export const UserForm = ({ mode, initialValues, trigger, onSuccess }: UserFormPr
rules={[{ required: true }]}
disabled={mode === 'edit'}
readonly={mode === 'edit'}
+ fieldProps={{ autoComplete: 'off', id: 'user-form-name' }}
/>
<ProFormText name="nickname" label="昵称" />
<ProFormText name="email" label="邮箱" rules={[{ type: 'email' }]} />
@@ -90,7 +90,12 @@ export default function UserPage() {
};
const columns: ProColumns<API.UserItem>[] = [
- { title: '用户名', dataIndex: 'username', width: 200 },
+ {
+ title: '用户名',
+ dataIndex: 'username',
+ width: 200,
+ fieldProps: { id: 'user-search', autoComplete: 'off' },
+ },
{ title: '昵称', dataIndex: 'nickname', width: 200 },
{
title: '状态',