|
@@ -80,14 +80,14 @@ const RoleLeftMenu = ({ onSelect }) => {
|
|
|
}
|
|
|
okText="确定"
|
|
|
cancelText="取消"
|
|
|
- onConfirm={() => tryUpdateRole(item.id, state.name)}>
|
|
|
+ onConfirm={() => tryUpdateRole(item.key, state.name)}>
|
|
|
<FormOutlined className="pr-2" />
|
|
|
</Popconfirm>
|
|
|
<Popconfirm
|
|
|
title="确认删除吗?"
|
|
|
onText="确认"
|
|
|
cancelText="取消"
|
|
|
- onConfirm={() => tryDelRole(item.id)}
|
|
|
+ onConfirm={() => tryDelRole(item.key)}
|
|
|
icon={<QuestionCircleOutlined style={{ color: 'red' }} />}>
|
|
|
<DeleteOutlined />
|
|
|
</Popconfirm>
|