mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
fix: 修复项目陈孤雁设置里,分组成员显示'我'定位错误
This commit is contained in:
parent
6781fc9330
commit
1ca761d790
@ -218,8 +218,7 @@ class ProjectMember extends Component {
|
|||||||
{this.state.groupMemberList.length ? this.state.groupMemberList.map((item, index) => {
|
{this.state.groupMemberList.length ? this.state.groupMemberList.map((item, index) => {
|
||||||
return (<div key={index} className="card-item">
|
return (<div key={index} className="card-item">
|
||||||
<img src={location.protocol + '//' + location.host + '/api/user/avatar?uid=' + item.uid} className="item-img" />
|
<img src={location.protocol + '//' + location.host + '/api/user/avatar?uid=' + item.uid} className="item-img" />
|
||||||
<p className="item-name">{item.username}</p>
|
<p className="item-name">{item.username}{item.uid === this.props.uid ? <Badge count={'我'} style={{ backgroundColor: '#689bd0', fontSize: '12px', marginLeft: '8px', borderRadius: '4px' }} /> : null}</p>
|
||||||
{item.uid === this.props.uid ? <Badge count={'我'} style={{ backgroundColor: '#689bd0', marginLeft: '8px', borderRadius: '4px' }} /> : null}
|
|
||||||
{item.role === 'owner' ? <p className="item-role">组长</p> : null}
|
{item.role === 'owner' ? <p className="item-role">组长</p> : null}
|
||||||
{item.role === 'dev' ? <p className="item-role">开发者</p> : null}
|
{item.role === 'dev' ? <p className="item-role">开发者</p> : null}
|
||||||
</div>);
|
</div>);
|
||||||
|
Loading…
Reference in New Issue
Block a user