This commit is contained in:
parent
2362fabee5
commit
be6de54c0d
|
|
@ -703,7 +703,7 @@ const User: React.FC = () => {
|
|||
</Modal>
|
||||
<Modal title='签到绑定' open={signInUserModal} destroyOnClose={true} onCancel={() => setSignInUserModal(false)} footer={null} centered width={'300px'}>
|
||||
<div className={styles.signInUserModal}>
|
||||
<div>
|
||||
<div id='signInView'>
|
||||
{signInUserForm.currentUserList.map((item: any, index: number) => {
|
||||
return (
|
||||
<div style={{ display: 'flex', alignItems: 'center', marginBottom: '10px' }} key={index}>
|
||||
|
|
@ -742,6 +742,12 @@ const User: React.FC = () => {
|
|||
...signInUserForm,
|
||||
currentUserList: currentUserListTemp,
|
||||
})
|
||||
setTimeout(() => {
|
||||
const signInView = document.getElementById('signInView') as HTMLElement;
|
||||
if (signInView) {
|
||||
signInView.scrollTop = signInView.scrollHeight;
|
||||
}
|
||||
}, 0);
|
||||
}}
|
||||
style={{ width: '100%', marginBottom: '20px' }}
|
||||
icon={<img src={ImageUrl.icon8} alt="" />}
|
||||
|
|
|
|||
Loading…
Reference in New Issue