feat: click student name to navigate to profile page
This commit is contained in:
@@ -222,7 +222,14 @@ const StudentsPage: React.FC = () => {
|
||||
|
||||
const columns = [
|
||||
{ title: 'ID', dataIndex: 'id', width: 70 },
|
||||
{ title: '姓名', dataIndex: 'name', width: 120 },
|
||||
{
|
||||
title: '姓名',
|
||||
dataIndex: 'name',
|
||||
width: 120,
|
||||
render: (v: string, record: any) => (
|
||||
<a onClick={() => navigate(`/students/${record.id}/profile`)}>{v}</a>
|
||||
),
|
||||
},
|
||||
{ title: '性别', dataIndex: 'gender', width: 70 },
|
||||
{
|
||||
title: '电话',
|
||||
|
||||
Reference in New Issue
Block a user