mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 21:06:42 +08:00
Merge branch 'master-20251023-tag' into test1024
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user