getTabName (item) {
let res = ''
let count = 0
this.categoryIdList.forEach(element => {
if (element === item.categoryId) {
count++
}
})
if (count) {
res = item.categoryName + ' ' + `<em>${count}</em>`
} else {
res = item.categoryName
}
return res
},
12.12 new askquestion
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-