yuzhilin

人民号顶导切换

@@ -198,7 +198,7 @@ export struct TopNavigationComponent { @@ -198,7 +198,7 @@ export struct TopNavigationComponent {
198 .vertical(false) 198 .vertical(false)
199 .onChange((index: number) => { 199 .onChange((index: number) => {
200 Logger.info(TAG, `onChange index : ${index}`); 200 Logger.info(TAG, `onChange index : ${index}`);
201 - if (!this.isBroadcast(this.myChannelList[index])) { 201 + if (!this.isBroadcast(this._currentNavIndex === 0 ? this.myChannelList[index] : this.topNavList[index])) {
202 this.currentTopNavSelectedIndex = index; 202 this.currentTopNavSelectedIndex = index;
203 } else { 203 } else {
204 // 跳转到播报页面 204 // 跳转到播报页面