diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index de9019bf..8ff9ae79 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -459,9 +459,9 @@ export default { // } // 添加计算是否所有热点标签都未选中(即"全部"选中状态) - // isAllHotTagsSelected() { - // return !this.hotTagsList.some(tag => tag.checked); - // } + isAllHotTagsSelected() { + return !this.hotTagsList.some(tag => tag.checked); + } }, data() { return { @@ -528,7 +528,7 @@ export default { hotList: [], totalPages: 1, localSessionKey: this.$xpage.constants.localCourseFiltersKey, - isAllHotTagsSelected: true, + // isAllHotTagsSelected: true, }; }, // 受众需要每次刷新 @@ -774,7 +774,6 @@ export default { this.hotTagsList.forEach(tag => { tag.checked = false; }); - this.isAllHotTagsSelected = true; // 清空course.tags this.course.tags = ''; @@ -990,7 +989,6 @@ export default { }, //点击标签 handleTagClick(item, list,type) { - this.isAllHotTagsSelected = false; item.checked = !item.checked; @@ -998,7 +996,7 @@ export default { const checkedTags = this.hotTagsList.filter(tag => tag.checked); let tagIds = checkedTags.map(tag => tag.id).join(','); this.course.tags = tagIds; - this.$forceUpdate(); + // 强制触发stagList重新计算 this.$nextTick(() => { this.searchData(type);