From 417d911f5dfbc46738b4226e2dca1c0eff204dc5 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Tue, 4 Nov 2025 12:06:58 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue index fd1c3024..77b93b00 100644 --- a/src/components/Course/courseTag.vue +++ b/src/components/Course/courseTag.vue @@ -191,6 +191,7 @@ export default { // 新增:处理选择变化事件 handleSelectionChange(newValues) { + console.log("----------handleSelectionChange---------->",newValues) // 检查数量限制 if (newValues.length > this.maxTags) { this.$message.warning(`最多只能选择${this.maxTags}个标签`); @@ -265,7 +266,7 @@ export default { console.log("----------newTag---------->",newTag.tagName) - this.previousTags = [...newTag]; + this.previousTags.push(newTag) this.searchResults.push(newTag) this.tagMap.set(newTag.id, newTag)