This commit is contained in:
670788339
2025-11-12 10:55:35 +08:00
parent 426ed75bc3
commit a94d101853

View File

@@ -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);