feat: 首页大类查看更多,题目列表标签

This commit is contained in:
秋水浮尘
2023-10-27 22:57:40 +08:00
parent e7b6b11f8a
commit c1093fa556
5 changed files with 165 additions and 22 deletions

View File

@@ -45,11 +45,11 @@ const QuestionList = (props) => {
</div>
<div className="question-info-tags">
{item?.tags?.length > 0 &&
item.tags.map((tagsItem, index) => {
{item?.labelName?.length > 0 &&
item.labelName.map((tagsItem) => {
return (
<div className="question-info-tag" key={index} style={{ backgroundColor: colors[RandomNumBoth(0, 7)] }}>
{tagsItem.name}
<div className="question-info-tag" key={tagsItem} style={{ backgroundColor: colors[RandomNumBoth(0, 7)] }}>
{tagsItem}
</div>
);
})}