优化:底部导航菜单

This commit is contained in:
2025-07-11 21:47:48 +08:00
parent 8375c2d6e4
commit 2a7ca140c7
13 changed files with 521 additions and 87 deletions

View File

@@ -29,6 +29,7 @@ const List = () => {
const navs = await getCmsNavigation(categoryId);
if (navs) {
setNavigation(navs);
Taro.setNavigationBarTitle({title: `${navs.title}`})
}
}
@@ -62,7 +63,7 @@ const List = () => {
const nextPage = page + 1;
console.log('honor/list 加载更多 - 下一页:', nextPage);
setPage(nextPage);
reload(nextPage);
reload(nextPage).then();
}
useEffect(() => {
@@ -72,7 +73,7 @@ const List = () => {
setList([]);
setHasMore(true);
// 加载第一页数据
reload(1);
reload(1).then();
}, [])
return (