return ( <Space size="middle"> {/* text.key就是id */} <Button type='primary' onClick={() => navigate('/edit/' + text.key)}>编辑</Button> <Button type='danger' onClick={() =>delFn(text.key)}>删除</Button> </Space> )
return ( <Space size="middle"> {/* text.key就是id */} <Button type='primary' onClick={() => navigate('/edit/' + text.key)}>编辑</Button> <Button type='danger' onClick={() =>delFn(text.key)}>删除</Button> </Space> )