fix:解决 Forget to pass form prop

perf/export-docx
Jimmy Liow 1 year ago
parent 7801719522
commit e3038e0a9d

@ -224,17 +224,15 @@ function Management() {
}}
title={t('account:detail')}
open={isAccountModalOpen} onOk={() => setAccountModalOpen(false)} onCancel={() => setAccountModalOpen(false)}
destroyOnClose={true}
clearOnDestroy={true}
destroyOnClose
forceRender
modalRender={(dom) => (
<Form
name='AccountForm'
form={accountForm}
layout='vertical'
size='large'
style={{
maxWidth: 600,
}}
className='max-w-2xl'
onFinish={onAccountFinish}
onFinishFailed={onAccountFailed}
autoComplete='off'
@ -322,7 +320,7 @@ function Management() {
</Select>
</Form.Item>
</Modal>
<Space direction='vertical' style={{ width: '100%' }}>
<Space direction='vertical' className='w-full'>
<Title level={3}>{t('account:accountList')}</Title>
<SearchForm
fieldsConfig={{
@ -331,7 +329,7 @@ function Management() {
username: { label: t('account:username') },
realname: { label: t('account:realname') },
},
sort: { username: 1, realname: 2, dates: 3},
sort: { username: 1, realname: 2},
}}
onSubmit={() => {
handelAccountSearch()

@ -161,8 +161,8 @@ function RoleList() {
}}
title={t('account:detail')}
open={isRoleModalOpen} onOk={() => setRoleModalOpen(false)} onCancel={() => setRoleModalOpen(false)}
destroyOnClose={true}
clearOnDestroy={true}
destroyOnClose
forceRender
modalRender={(dom) => (
<Form
name='RoleForm'

Loading…
Cancel
Save