FEAT => 本次更新项目为:
This commit is contained in:
@@ -34,10 +34,10 @@ const NavCommon: React.FC<NavCommonProps> = ({ 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");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user