1
This commit is contained in:
@@ -97,7 +97,7 @@ const HomeNavbar = (props: IProps) => {
|
||||
// 点击logo
|
||||
const handleLogoClick = () => {
|
||||
// 如果当前在列表页,点击后页面回到顶部
|
||||
if (getCurrentFullPath() === "/game_pages/list/index") {
|
||||
if (getCurrentFullPath() === "/main_pages/index") {
|
||||
// 使用父组件传递的滚动方法(适配 ScrollView)
|
||||
if (onScrollToTop) {
|
||||
onScrollToTop();
|
||||
@@ -110,7 +110,7 @@ const HomeNavbar = (props: IProps) => {
|
||||
}
|
||||
}
|
||||
(Taro as any).redirectTo({
|
||||
url: "game_pages/list/index", // 列表页
|
||||
url: "/main_pages/index", // 列表页
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user