diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue index 0e3ffea7..79775bf4 100644 --- a/src/components/Course/courseTag.vue +++ b/src/components/Course/courseTag.vue @@ -253,12 +253,18 @@ export default { if (this.sysTypeList.length > 2) { this.params.sysType3 = this.sysTypeList[2]; //三级的id } - const {result:newTag} = await apiCourseTag.createTag(this.params) - this.$message.success('标签创建成功',newTag); console.log("----------创建前---------->",this.searchResults) console.log("----------创建前---------->",this.selectedTags) + const {result:newTag} = await apiCourseTag.createTag(this.params) + this.$message.success('标签创建成功',newTag); + + console.log("----------newTag---------->",newTag) + console.log("----------newTag---------->",newTag.tagName) + + + this.searchResults.push(newTag) this.tagMap.set(newTag.id, newTag)