fix(market-ranking): 行点击增加item.market null guard,防止undefined时crash
This commit is contained in:
@@ -632,7 +632,9 @@ export struct MarketRankingNodeComponent {
|
||||
.alignItems(VerticalAlign.Center)
|
||||
.border({ width: { top: 1 }, color: $r('app.color.elements_others_divider_primary') })
|
||||
.onClick(() => {
|
||||
this.jumpToDetail(item);
|
||||
if (item.market !== undefined) {
|
||||
this.jumpToDetail(item);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user