Merge branch 'master-20251023-tag' into test1024

This commit is contained in:
670788339
2025-10-30 14:12:44 +08:00

View File

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