diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue index 45bf0692..33512508 100644 --- a/src/components/Course/courseTag.vue +++ b/src/components/Course/courseTag.vue @@ -273,14 +273,10 @@ export default { console.log("----------newTag---------->",newTag.tagName) - this.previousTags.push(newTag) - this.selectedTags = [...this.previousTags]; - this.$emit('change', this.displayTags); - + this.selectedTags.push(newTag); this.searchResults.push(newTag) this.tagMap.set(newTag.id, newTag) - // this.selectedTags.push(newTag); console.log("----------创建后---------->",this.searchResults) console.log("----------创建后---------->",this.selectedTags)