From e715fd2504455101e553d6321fa652e71f2ac30a Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 1 Mar 2026 02:55:56 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20=E5=BC=95=E8=8D=90=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E6=A0=91=E8=8A=82=E7=82=B9=E7=82=B9=E5=87=BB=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E7=94=A8=E6=88=B7=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前点击只切换树根节点,不导航。改为 router.push 跳转。 Co-Authored-By: Claude Opus 4.6 --- frontend/admin-web/src/app/(dashboard)/users/[id]/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/admin-web/src/app/(dashboard)/users/[id]/page.tsx b/frontend/admin-web/src/app/(dashboard)/users/[id]/page.tsx index 5dc486d8..60e7e59e 100644 --- a/frontend/admin-web/src/app/(dashboard)/users/[id]/page.tsx +++ b/frontend/admin-web/src/app/(dashboard)/users/[id]/page.tsx @@ -236,10 +236,10 @@ export default function UserDetailPage() { } }, [activeTab, accountSequence, contractsPage]); - // 切换推荐关系树的根节点 + // 点击节点跳转到该用户详情页 const handleTreeNodeClick = useCallback((node: ReferralNode) => { - setTreeRootUser(node.accountSequence); - }, []); + router.push(`/users/${node.accountSequence}`); + }, [router]); // 展开/收起节点的下级 const handleToggleNode = useCallback(async (nodeSeq: string, hasChildren: boolean) => {