chenqs

fix |> 修复tabbar来回多长切换出现多个选中的场景

@@ -96,7 +96,7 @@ export struct BottomNavigationComponent { @@ -96,7 +96,7 @@ export struct BottomNavigationComponent {
96 navItem: navItem 96 navItem: navItem
97 }) 97 })
98 } else { 98 } else {
99 - // 其它带顶的页面,如 新闻、人民号、服务 99 + // 其它带顶的页面,如 新闻、人民号、服务
100 TopNavigationComponentNew({ 100 TopNavigationComponentNew({
101 topNavList: navItem.topNavChannelList.filter(item => item.channelId != 2073), 101 topNavList: navItem.topNavChannelList.filter(item => item.channelId != 2073),
102 _currentNavIndex: $currentNavIndex, 102 _currentNavIndex: $currentNavIndex,
@@ -193,14 +193,17 @@ export struct BottomNavigationComponent { @@ -193,14 +193,17 @@ export struct BottomNavigationComponent {
193 } 193 }
194 194
195 getBottomImageKnifeOption(navItem: BottomNavDTO, isSelect: boolean): ImageKnifeOption { 195 getBottomImageKnifeOption(navItem: BottomNavDTO, isSelect: boolean): ImageKnifeOption {
  196 +
196 let defaultIcon = this.getBottomLocalIcon(navItem, isSelect) 197 let defaultIcon = this.getBottomLocalIcon(navItem, isSelect)
197 let url = this.getBottomIcon(navItem, isSelect) 198 let url = this.getBottomIcon(navItem, isSelect)
  199 + // Logger.info(TAG, `onChange111, 本地的地址: ${defaultIcon}`);
  200 +
198 let imageKnifeOption: ImageKnifeOption = { 201 let imageKnifeOption: ImageKnifeOption = {
199 loadSrc: url, 202 loadSrc: url,
200 // 占位图使用本地资源 203 // 占位图使用本地资源
201 placeholderSrc: defaultIcon, 204 placeholderSrc: defaultIcon,
202 // 失败占位图使用本地资源 205 // 失败占位图使用本地资源
203 - errorholderSrc: defaultIcon, 206 + // errorholderSrc: defaultIcon,
204 // 是否开启一级内存缓存 207 // 是否开启一级内存缓存
205 isCacheable: true, 208 isCacheable: true,
206 // 磁盘缓存 209 // 磁盘缓存