feat(seller): 发布账号新增是否有全英雄必填字段,详情页展示
This commit is contained in:
@@ -154,6 +154,10 @@ export function getListingChips(item: Listing): ListingDisplayChip[] {
|
||||
if (readAssetString(item, 'unlock_said') === '是') {
|
||||
chips.push({ label: '解锁赛伊德', value: '是' })
|
||||
}
|
||||
// 全英雄为必选项,仅在号主勾选「是」时展示
|
||||
if (readAssetString(item, 'all_hero') === '是') {
|
||||
chips.push({ label: '全英雄', value: '是' })
|
||||
}
|
||||
return chips.filter(chip => chip.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user