feat(AccountPage): add destroyOnHidden to ContentDrawer and fix tenant and login

This commit is contained in:
Vladislav Syrochkin 2025-06-24 16:29:19 +05:00
parent e5dfdc3464
commit 448e4264a5
3 changed files with 3 additions and 2 deletions

View File

@ -160,6 +160,7 @@ export default function ContentDrawer({
placement="right" placement="right"
open={open} open={open}
width={width} width={width}
destroyOnHidden={true}
closable={false} closable={false}
> >
{children} {children}

View File

@ -77,7 +77,7 @@ export default function UserEdit({ userId }: UserEditProps) {
<Form.Item <Form.Item
label={t('tenant')} label={t('tenant')}
name="tenant" name="bindTenantId"
rules={[{ required: true, message: t('tenantMessage') }]} rules={[{ required: true, message: t('tenantMessage') }]}
> >
<Input /> <Input />

View File

@ -97,7 +97,7 @@ export default function AccountsPage() {
</div> </div>
<div style={{ display: 'flex', flexDirection: 'column' }}> <div style={{ display: 'flex', flexDirection: 'column' }}>
<div>{record.name}</div> <div>{record.name}</div>
<div style={{ color: '#606060' }}>{record.email}</div> <div style={{ color: '#606060' }}>{record.login}</div>
</div> </div>
</div> </div>
), ),