mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 14:56:44 +08:00
调试
This commit is contained in:
@@ -191,6 +191,7 @@ export default {
|
|||||||
|
|
||||||
// 新增:处理选择变化事件
|
// 新增:处理选择变化事件
|
||||||
handleSelectionChange(newValues) {
|
handleSelectionChange(newValues) {
|
||||||
|
console.log("----------handleSelectionChange---------->",newValues)
|
||||||
// 检查数量限制
|
// 检查数量限制
|
||||||
if (newValues.length > this.maxTags) {
|
if (newValues.length > this.maxTags) {
|
||||||
this.$message.warning(`最多只能选择${this.maxTags}个标签`);
|
this.$message.warning(`最多只能选择${this.maxTags}个标签`);
|
||||||
@@ -265,7 +266,7 @@ export default {
|
|||||||
console.log("----------newTag---------->",newTag.tagName)
|
console.log("----------newTag---------->",newTag.tagName)
|
||||||
|
|
||||||
|
|
||||||
this.previousTags = [...newTag];
|
this.previousTags.push(newTag)
|
||||||
this.searchResults.push(newTag)
|
this.searchResults.push(newTag)
|
||||||
this.tagMap.set(newTag.id, newTag)
|
this.tagMap.set(newTag.id, newTag)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user