mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 18:36:43 +08:00
调试
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user