feat: click student name to navigate to profile page

This commit is contained in:
2026-07-06 16:43:51 +08:00
parent 4024d7c174
commit 8f3a20140d

View File

@@ -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: '电话',