fix(market-ranking): 行点击增加item.market null guard,防止undefined时crash

This commit is contained in:
clz
2026-07-28 13:47:05 +08:00
parent 3ed8218f71
commit 499b0846d7
@@ -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);
}
})
}