Showing
1 changed file
with
2 additions
and
0 deletions
| @@ -42,6 +42,8 @@ export struct BottomNavigationComponent { | @@ -42,6 +42,8 @@ export struct BottomNavigationComponent { | ||
| 42 | let bottomNav = await PageViewModel.getBottomNavData(getContext(this)) | 42 | let bottomNav = await PageViewModel.getBottomNavData(getContext(this)) |
| 43 | if (bottomNav && bottomNav.bottomNavList != null) { | 43 | if (bottomNav && bottomNav.bottomNavList != null) { |
| 44 | Logger.info(TAG, `aboutToAppear, bottomNav.length: ${bottomNav.bottomNavList.length}`); | 44 | Logger.info(TAG, `aboutToAppear, bottomNav.length: ${bottomNav.bottomNavList.length}`); |
| 45 | + // 使用filter方法移除name为'服务'的项 | ||
| 46 | + bottomNav.bottomNavList = bottomNav.bottomNavList.filter(item => item.name !== '服务'); | ||
| 45 | this.bottomNavList = bottomNav.bottomNavList | 47 | this.bottomNavList = bottomNav.bottomNavList |
| 46 | } | 48 | } |
| 47 | } | 49 | } |
-
Please register or login to post a comment