This commit is contained in:
张成
2025-11-15 12:32:24 +08:00
parent 46768991f8
commit 334bbf1609
9 changed files with 19 additions and 20 deletions

View File

@@ -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", // 列表页
});
};