From 1710e34f89c00c3a74057bd6c370c95b39694a88 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Tue, 11 Nov 2025 14:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E9=83=A8=E9=80=89=E4=B8=AD=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/qualityCourse.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/portal/course/qualityCourse.vue b/src/views/portal/course/qualityCourse.vue index fc55ffa4..e02d464d 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, }; }, // 受众需要每次刷新 @@ -584,14 +585,15 @@ export default { }, methods: { - isAllHotTagsSelected() { - return !this.hotTagsList.some(tag => tag.checked); - }, + // isAllHotTagsSelected() { + // return !this.hotTagsList.some(tag => tag.checked); + // }, handleClearHotTags() { // 清除所有热点标签的选中状态 this.hotTagsList.forEach(tag => { tag.checked = false; }); + this.isAllHotTagsSelected = true; // 清空course.tags this.course.tags = ''; @@ -600,6 +602,8 @@ export default { }, handleTagClick(item, list,type) { console.info('切换标签 item = ' + item) + this.isAllHotTagsSelected = false; + item.checked = !item.checked; // 更新course.tags