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)