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; },