diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index c0050a1b..e8710174 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -399,6 +399,7 @@ size="mini" type="info" style="margin: 2px 2px; border-radius: 2px;" :style="{ fontWeight: isTagMatched(tag) ? 'bold' : 'normal' }" + class="course-tag-item" > {{ tag }} @@ -1774,7 +1775,14 @@ handleClearTags() { } } } +.course-tag-item { + font-weight: normal; + // 使用 !important 确保样式生效 + &[style*="font-weight: bold"] { + font-weight: bold !important; + } +} // 三级背景高度 .course-recommended-style{ position: relative;