|
|
@ -36,6 +36,8 @@ const Authority = (props) => { |
|
|
|
setUserSelected(depUser[0].username) |
|
|
|
dispatch(getUserResource(depUser[0].id)) |
|
|
|
setUseName(depUser[0].name) |
|
|
|
} else { |
|
|
|
setUseName('') |
|
|
|
} |
|
|
|
}, [depUser]) |
|
|
|
|
|
|
@ -114,7 +116,7 @@ const Authority = (props) => { |
|
|
|
</div> |
|
|
|
<Divider /> |
|
|
|
<div className='list-title'> |
|
|
|
{`【${useName ? useName : '管理员'}】 功能范围`} |
|
|
|
{`【${useName || ''}】 功能范围`} |
|
|
|
</div> |
|
|
|
{depUser.length ? |
|
|
|
<Card bordered={false} bodyStyle={{ padding: 8, paddingTop: 24 }}> |
|
|
|