Explorar o código

fix: 角色列表的调整

outaozhen %!s(int64=3) %!d(string=hai) anos
pai
achega
31c9d30a94

+ 2 - 2
src/pages/Permission/Role/components/RoleLeftMenu/index.tsx

@@ -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>