mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-06 09:26:43 +08:00
调试
This commit is contained in:
@@ -606,8 +606,6 @@ export default {
|
||||
console.log("父组件:",tags)
|
||||
// 限制最多5个标签
|
||||
if (tags.length > 5) {
|
||||
console.log("最多只能选择5个标签 tags : ",this.courseInfo.tags)
|
||||
console.log("最多只能选择5个标签 showTags : ",this.showTags)
|
||||
this.$message.warning('最多只能选择5个标签')
|
||||
return
|
||||
}
|
||||
@@ -618,6 +616,8 @@ export default {
|
||||
})
|
||||
this.courseInfo.tags = ids;
|
||||
console.log("父组件ids : ",this.courseInfo.tags)
|
||||
// 同时更新showTags,确保显示与实际数据一致
|
||||
this.showTags = tags.map(tag => tag.tagName);
|
||||
},
|
||||
showChooseOrg(){
|
||||
this.$refs.refChooseOrg.dlgShow = true;
|
||||
|
||||
Reference in New Issue
Block a user