精品课点击全部未显示选中

This commit is contained in:
670788339
2025-11-12 11:20:11 +08:00
parent a94d101853
commit dc57becb0d

View File

@@ -513,7 +513,7 @@ export default {
totalPages: 1,
localSessionKey: this.$xpage.constants.localCourseFiltersKey,
hotTagsList: [],
isAllHotTagsSelected: true,
// isAllHotTagsSelected: true,
};
},
// 受众需要每次刷新
@@ -728,7 +728,7 @@ export default {
},
handleTagClick(item, list,type) {
console.info('切换标签 item = ' + item)
this.isAllHotTagsSelected = false;
// this.isAllHotTagsSelected = false;
item.checked = !item.checked;
@@ -736,7 +736,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();
// this.$forceUpdate();
this.searchData(type);
// 强制触发stagList重新计算