From 8f3a20140d1429771d7894456f36a8e9701bcc41 Mon Sep 17 00:00:00 2001 From: wangziqi Date: Mon, 6 Jul 2026 16:43:51 +0800 Subject: [PATCH] feat: click student name to navigate to profile page --- apps/admin/src/pages/Students/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/admin/src/pages/Students/index.tsx b/apps/admin/src/pages/Students/index.tsx index c71ba11e..29e7c88e 100644 --- a/apps/admin/src/pages/Students/index.tsx +++ b/apps/admin/src/pages/Students/index.tsx @@ -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) => ( + navigate(`/students/${record.id}/profile`)}>{v} + ), + }, { title: '性别', dataIndex: 'gender', width: 70 }, { title: '电话',