This commit is contained in:
670788339
2025-11-04 13:13:11 +08:00
parent a25198f80f
commit 8711bbaabb

View File

@@ -218,7 +218,8 @@ export default {
if (this.$refs.tagSelect) {
const input = this.$refs.tagSelect.$refs.input;
if (input) {
input.value = '';
console.log("----------调用了注释的清除文字方法 clearInput---------->",input.value)
// input.value = '';
}
}
},
@@ -262,25 +263,20 @@ export default {
this.params.sysType3 = this.sysTypeList[2]; //三级的id
}
console.log("----------创建前---------->",this.searchResults)
console.log("----------创建前---------->",this.selectedTags)
console.log("----------创建前---------->",this.previousTags)
const {result:newTag} = await apiCourseTag.createTag(this.params)
this.$message.success('标签创建成功',newTag);
console.log("----------newTag---------->",newTag)
console.log("----------newTag---------->",newTag.tagName)
this.selectedTags.push(newTag);
this.searchResults.push(newTag)
this.tagMap.set(newTag.id, newTag)
console.log("----------创建后---------->",this.searchResults)
console.log("----------创建后---------->",this.selectedTags)
console.info(' 标签创建成功 id = ' + newTag.id)
console.info(' 标签创建成功 tagName = ' + newTag.tagName)
console.info(' 标签创建成功 selectedTags = ' + this.selectedTags)
console.info(' 标签创建成功 searchResults = ' + this.searchResults)
console.info(' 标签创建成功 tagMap = ' + this.tagMap)
this.$emit('change', this.displayTags)
this.doSearch('');
} finally {
this.loading = false
}