diff --git a/src/views/portal/course/qualityCourse.vue b/src/views/portal/course/qualityCourse.vue index fc55ffa4..d3af9fd8 100644 --- a/src/views/portal/course/qualityCourse.vue +++ b/src/views/portal/course/qualityCourse.vue @@ -513,6 +513,7 @@ export default { totalPages: 1, localSessionKey: this.$xpage.constants.localCourseFiltersKey, hotTagsList: [], + isAllHotTagsSelected: true, }; }, // 受众需要每次刷新 @@ -592,6 +593,7 @@ export default { this.hotTagsList.forEach(tag => { tag.checked = false; }); + this.isAllHotTagsSelected = true; // 清空course.tags this.course.tags = ''; @@ -600,8 +602,8 @@ export default { }, handleTagClick(item, list,type) { console.info('切换标签 item = ' + item) + this.isAllHotTagsSelected = false; item.checked = !item.checked; - // 更新course.tags const checkedTags = this.hotTagsList.filter(tag => tag.checked); let tagIds = checkedTags.map(tag => tag.id).join(',');