|
@@ -154,7 +154,7 @@ const NewPage: React.FC = props => {
|
|
|
// 设置修改密码
|
|
|
const handlePassword = () => {
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
|
- login2p.userInfo?.IsSetPassword ? setVisibleModifyPassword(true) : setVisiblePassword(false)
|
|
|
+ login2p.userInfo?.IsSetPassword ? setVisibleModifyPassword(true) : setVisiblePassword(true)
|
|
|
}
|
|
|
return (
|
|
|
<div className={styles['newpage-header']} style={{ minWidth: isShowMobileMenu ? 'auto' : '1024px' }}>
|
|
@@ -372,9 +372,11 @@ const NewPage: React.FC = props => {
|
|
|
<div className="person-line person-center-link" onClick={handleToMy}>
|
|
|
个人中心
|
|
|
</div>
|
|
|
- <div className="person-line person-center-link" onClick={handlePassword}>
|
|
|
- {login2p.userInfo?.IsSetPassword ? '修改登录密码' : '设置登录密码'}
|
|
|
- </div>
|
|
|
+ {login2p.userInfo && login2p.userInfo.IsAuthor && (
|
|
|
+ <div className="person-line person-center-link" onClick={handlePassword}>
|
|
|
+ {login2p.userInfo?.IsSetPassword ? '修改登录密码' : '设置登录密码'}
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
<div className="person-line person-exit" onClick={login2p.logout}>
|
|
|
退出
|
|
|
</div>
|