小程序解决页面导航错误

This commit is contained in:
zhonghua1
2026-01-20 09:03:50 +08:00
parent 9c00db8ff5
commit 4ebeec45bc
5 changed files with 569 additions and 82 deletions

View File

@@ -3,7 +3,7 @@
wx:for="{{visibleTabs}}"
wx:key="key"
class="tabbar-item {{currentPath === item.pagePath ? 'active' : ''}}"
data-item="{{item}}"
data-key="{{item.key}}"
bindtap="switchTab"
>
<image class="tabbar-icon" src="{{currentPath === item.pagePath ? item.selectedIconPath : item.iconPath}}" />