mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
opti: 没有权限的分组禁用掉
This commit is contained in:
parent
d7e758213c
commit
bd821e30bc
@ -131,7 +131,9 @@ class ProjectList extends Component {
|
||||
}]
|
||||
})(
|
||||
<Select>
|
||||
{this.state.groupList.map((item, index) => <Option value={item._id.toString()} key={index}>{item.group_name}</Option>)}
|
||||
{this.state.groupList.map((item, index) => (
|
||||
<Option disabled={!(item.role === 'dev' || item.role === 'owner')} value={item._id.toString()} key={index}>{item.group_name}</Option>
|
||||
))}
|
||||
</Select>
|
||||
)}
|
||||
</FormItem>
|
||||
|
Loading…
Reference in New Issue
Block a user