feat: 将list相关的代码迁移到game_pages目录
This commit is contained in:
@@ -37,7 +37,7 @@ const ListHeader = (props: IProps) => {
|
||||
|
||||
const handleInputClick = () => {
|
||||
Taro.navigateTo({
|
||||
url: "/pages/search/index",
|
||||
url: "/game_pages/search/index",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -44,11 +44,11 @@ const ListHeader = (props: IProps) => {
|
||||
const pages = Taro.getCurrentPages();
|
||||
const currentPage = pages[pages.length - 1];
|
||||
const currentPagePath = currentPage.route;
|
||||
if (currentPagePath === "pages/searchResult/index") {
|
||||
if (currentPagePath === "game_pages/searchResult/index") {
|
||||
Taro.navigateBack();
|
||||
} else {
|
||||
Taro.navigateTo({
|
||||
url: "/pages/search/index",
|
||||
url: "/game_pages/search/index",
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -56,7 +56,7 @@ const ListHeader = (props: IProps) => {
|
||||
// 点击logo
|
||||
const handleLogoClick = () => {
|
||||
Taro.redirectTo({
|
||||
url: "pages/list/index", // 列表页
|
||||
url: "game_pages/list/index", // 列表页
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user