FEAT => 本次更新项目为:
This commit is contained in:
@@ -34,10 +34,10 @@ const NavCommon: React.FC<NavCommonProps> = ({ title = "触客宝" }) => {
|
|||||||
// 处理菜单图标点击:在两个路由之间切换
|
// 处理菜单图标点击:在两个路由之间切换
|
||||||
const handleMenuClick = () => {
|
const handleMenuClick = () => {
|
||||||
const current = location.pathname;
|
const current = location.pathname;
|
||||||
if (current.startsWith("/pc/powerCenter")) {
|
if (current.startsWith("/pc/weChat")) {
|
||||||
navigate("/pc/weChat");
|
|
||||||
} else {
|
|
||||||
navigate("/pc/powerCenter");
|
navigate("/pc/powerCenter");
|
||||||
|
} else {
|
||||||
|
navigate("/pc/weChat");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user