diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue index 38f5a5da..00357377 100644 --- a/src/components/Course/courseTag.vue +++ b/src/components/Course/courseTag.vue @@ -320,14 +320,14 @@ export default { } }); - // this.$nextTick(() => { - // // 强制重新设置selectedTags来触发更新 - // const tempTags = [...this.selectedTags]; - // this.selectedTags = []; - // this.$nextTick(() => { - // this.selectedTags = tempTags; - // }); - // }); + this.$nextTick(() => { + // 强制重新设置selectedTags来触发更新 + const tempTags = [...this.selectedTags]; + this.selectedTags = []; + this.$nextTick(() => { + this.selectedTags = tempTags; + }); + }); } finally { this.loading = false