From 2a633e25e5c47a50269886cb769219aac6707a16 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Tue, 4 Nov 2025 11:27:55 +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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)