mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
fix: 分组切换
This commit is contained in:
parent
7c75baa27e
commit
8945e71308
@ -122,11 +122,11 @@ export default class GroupList extends Component {
|
|||||||
className="group-list"
|
className="group-list"
|
||||||
mode="inline"
|
mode="inline"
|
||||||
onClick={this.selectGroup}
|
onClick={this.selectGroup}
|
||||||
selectedKeys={[currGroup._id]}
|
selectedKeys={[`${currGroup._id}`]}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
groupList.map((group) => (
|
groupList.map((group) => (
|
||||||
<Menu.Item key={group._id} className="group-item">
|
<Menu.Item key={`${group._id}`} className="group-item">
|
||||||
<Icon type="folder-open" />{group.group_name}
|
<Icon type="folder-open" />{group.group_name}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
))
|
))
|
||||||
|
Loading…
Reference in New Issue
Block a user