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

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

No files matched your search

+4 -4
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>
);
})}