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