|
@@ -190,9 +190,12 @@
|
|
},
|
|
},
|
|
back() { this.$router.go(-1) },
|
|
back() { this.$router.go(-1) },
|
|
searchTerms(query){
|
|
searchTerms(query){
|
|
|
|
+ if(!query.trim()){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
//搜索术语列表
|
|
//搜索术语列表
|
|
this.showDrop = true;
|
|
this.showDrop = true;
|
|
- api.getAllConcept({name:query}).then((res) =>{
|
|
|
|
|
|
+ api.getAllConcept({name:query.trim()}).then((res) =>{
|
|
this.showDrop = false;
|
|
this.showDrop = false;
|
|
if(res.data.code === '0') {
|
|
if(res.data.code === '0') {
|
|
this.terms = res.data.data;
|
|
this.terms = res.data.data;
|