From ef868f81654018a3c459fc3168e57d55536fa6cc Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Tue, 4 Nov 2025 12:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseTag.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue index 77b93b00..508d9765 100644 --- a/src/components/Course/courseTag.vue +++ b/src/components/Course/courseTag.vue @@ -267,10 +267,13 @@ export default { this.previousTags.push(newTag) + this.selectedTags = [...this.previousTags]; + this.$emit('change', this.displayTags); + this.searchResults.push(newTag) this.tagMap.set(newTag.id, newTag) - this.selectedTags.push(newTag); + // this.selectedTags.push(newTag); console.log("----------创建后---------->",this.searchResults) console.log("----------创建后---------->",this.selectedTags)