mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 09:56:42 +08:00
注释在线保存前创建标签
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user