|
|
|
@@ -12,7 +12,7 @@ import { |
|
|
|
} from '@ant-design/icons'; |
|
|
|
import { PageLoading } from '@ant-design/pro-components'; |
|
|
|
import { useModel } from '@umijs/max'; |
|
|
|
import { List } from 'antd'; |
|
|
|
import { Button, List } from 'antd'; |
|
|
|
import { useCallback, useState } from 'react'; |
|
|
|
import { flushSync } from 'react-dom'; |
|
|
|
import AvatarCropper from './components/AvatarCropper'; |
|
|
|
@@ -162,7 +162,7 @@ const Center = () => { |
|
|
|
<img src={currentUser.avatar || DefaultAvatar} draggable={false} alt="" /> |
|
|
|
</div> |
|
|
|
{renderUserInfo(currentUser)} |
|
|
|
{/* <div className={styles['user-center__buttons']}> |
|
|
|
<div className={styles['user-center__buttons']}> |
|
|
|
<Button |
|
|
|
type="primary" |
|
|
|
size="large" |
|
|
|
@@ -174,7 +174,7 @@ const Center = () => { |
|
|
|
<Button type="primary" size="large" onClick={() => setRestModalOpen(true)}> |
|
|
|
重置密码 |
|
|
|
</Button> |
|
|
|
</div> */} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<AvatarCropper |
|
|
|
|