注释在线保存前创建标签

This commit is contained in:
670788339
2025-10-30 14:10:54 +08:00
parent 8bf7a8e8e7
commit 36b739d139

View File

@@ -142,7 +142,7 @@ export default {
handleEnterKey(event) {
const inputVal = event.target.value?.trim()
if (!this.searchResults.length && inputVal && this.selectedTags.length < this.maxTags) {
// this.createNewTag(event.target.value.trim())
this.createNewTag(event.target.value.trim())
event.target.value = ''
}
},
@@ -179,7 +179,7 @@ export default {
if (this.sysTypeList.length > 2) {
this.params.sysType3 = this.sysTypeList[2]; //三级的id
}
const {result:newTag} = await apiCourseTag.createTag(this.params)
// const {result:newTag} = await apiCourseTag.createTag(this.params)
this.$message.success('标签创建成功');
this.searchResults.push(newTag)
console.log("----------newTag---------->",this.searchResults)