Browse Source

fix:注释掉修改头像

dev-zw-temp
zhaowei 7 months ago
parent
commit
f1c7d0ad15
3 changed files with 21 additions and 20 deletions
  1. +1
    -0
      react-ui/src/pages/User/Center/components/ResetPassword/index.tsx
  2. +17
    -17
      react-ui/src/pages/User/Center/index.less
  3. +3
    -3
      react-ui/src/pages/User/Center/index.tsx

+ 1
- 0
react-ui/src/pages/User/Center/components/ResetPassword/index.tsx View File

@@ -77,6 +77,7 @@ const ResetPassword = ({ open, onFinished }: ResetPasswordProps) => {
<Form.Item
name="confirmPassword"
label="确认密码"
dependencies={['newPassword']}
required
rules={[{ validator: checkPassword }]}
>


+ 17
- 17
react-ui/src/pages/User/Center/index.less View File

@@ -12,23 +12,23 @@
height: @avaterSize;
border-radius: 50%;
}
&:hover:after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
color: #eee;
font-size: 24px;
font-style: normal;
line-height: @avaterSize;
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
cursor: pointer;
content: '+';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// &:hover:after {
// position: absolute;
// top: 0;
// right: 0;
// bottom: 0;
// left: 0;
// color: #eee;
// font-size: 24px;
// font-style: normal;
// line-height: @avaterSize;
// background: rgba(0, 0, 0, 0.5);
// border-radius: 50%;
// cursor: pointer;
// content: '+';
// -webkit-font-smoothing: antialiased;
// -moz-osx-font-smoothing: grayscale;
// }
}

.user-center {


+ 3
- 3
react-ui/src/pages/User/Center/index.tsx View File

@@ -155,9 +155,9 @@ const Center = () => {
<div className={styles['user-center']}>
<div
className={styles.avatarHolder}
onClick={() => {
setCropperModalOpen(true);
}}
// onClick={() => {
// setCropperModalOpen(true);
// }}
>
<img src={currentUser.avatar || DefaultAvatar} draggable={false} alt="" />
</div>


Loading…
Cancel
Save