From cc4909897bb4de32cb8cb9b4385a31d5804f99d1 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Fri, 31 Oct 2025 18:42:29 +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/courseForm.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index afcaf553..6eee09d4 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -640,6 +640,10 @@ export default { // 同时更新showTags,确保显示与实际数据一致 this.showTags = tags.map(tag => tag.tagName); }, + syncTags(tags) { + this.selectedTags = tags.slice(0, 5); // 强制限制为5个 + this.$emit('change', this.selectedTags); + }, showChooseOrg(){ this.$refs.refChooseOrg.dlgShow = true; },