diff --git a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx index 114d8cbe..1e51421d 100644 --- a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx +++ b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx @@ -34,10 +34,10 @@ const NavCommon: React.FC = ({ title = "触客宝" }) => { // 处理菜单图标点击:在两个路由之间切换 const handleMenuClick = () => { const current = location.pathname; - if (current.startsWith("/pc/powerCenter")) { - navigate("/pc/weChat"); - } else { + if (current.startsWith("/pc/weChat")) { navigate("/pc/powerCenter"); + } else { + navigate("/pc/weChat"); } };