mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
调试
This commit is contained in:
@@ -607,6 +607,8 @@ export default {
|
||||
// 限制最多5个标签
|
||||
if (tags.length > 5) {
|
||||
this.$message.warning('最多只能选择5个标签')
|
||||
// 强制限制为5个
|
||||
tags = tags.slice(0, 5);
|
||||
return
|
||||
}
|
||||
let ids = "";
|
||||
@@ -615,9 +617,7 @@ export default {
|
||||
ids += tag.id + ',';
|
||||
})
|
||||
this.courseInfo.tags = ids;
|
||||
console.log("父组件ids : ",this.courseInfo.tags)
|
||||
// 同时更新showTags,确保显示与实际数据一致
|
||||
this.showTags = tags.map(tag => tag.tagName);
|
||||
this.$emit('change', tags.slice(0, 5)); // 确保传出数据也不超过5个
|
||||
},
|
||||
showChooseOrg(){
|
||||
this.$refs.refChooseOrg.dlgShow = true;
|
||||
|
||||
Reference in New Issue
Block a user