diff --git a/web_src/js/components/EditTopics.vue b/web_src/js/components/EditTopics.vue
index d2c871e03..72fae0a28 100644
--- a/web_src/js/components/EditTopics.vue
+++ b/web_src/js/components/EditTopics.vue
@@ -11,16 +11,16 @@
- {{arr.topic_name}}
+ {{arr.topic_name.toLowerCase()}}
- 点击或回车添加{{input}}标签
+ 点击或回车添加{{input.toLowerCase()}}标签
-
{{input}}
+
{{input.toLowerCase()}}
@@ -134,7 +134,7 @@ export default {
this.showSearchTopic = true
}
- else if(this.arrayTopics.indexOf(this.input)>-1){
+ else if(this.arrayTopics.indexOf(this.input.toLowerCase())>-1){
this.showInputValue = false
this.showSearchTopic = false
@@ -142,7 +142,7 @@ export default {
this.showInitTopic = []
let timestamp=new Date().getTime()
- this.params.q = this.input
+ this.params.q = this.input.toLowerCase()
this.params._ = timestamp
this.$axios.get('/api/v1/topics/search',{
params:this.params
@@ -224,11 +224,11 @@ export default {
return
}else{
let topic = this.input
- if(this.arrayTopics.includes(topic)){
+ if(this.arrayTopics.includes(topic.toLowerCase())){
return
}
else{
- this.arrayTopics.push(topic)
+ this.arrayTopics.push(topic.toLowerCase())
let topics = this.arrayTopics
let strTopics = topics.join(',')
@@ -268,7 +268,7 @@ export default {
}
else if(!this.showAddFlage){
let topic = this.input
- this.arrayTopics.push(topic)
+ this.arrayTopics.push(topic.toLowerCase())
let topics = this.arrayTopics
let strTopics = topics.join(',')