fix(admin-web): 引荐关系树节点点击跳转到用户详情页

之前点击只切换树根节点,不导航。改为 router.push 跳转。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-01 02:55:56 -08:00
parent 292c6518ba
commit e715fd2504
1 changed files with 3 additions and 3 deletions

View File

@ -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) => {