first let bug
This commit is contained in:
@@ -96,6 +96,7 @@ export default {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//console.log("watch::searchentry - calling do search:");
|
||||||
this.doSearch();
|
this.doSearch();
|
||||||
},
|
},
|
||||||
errors(val) {
|
errors(val) {
|
||||||
@@ -267,6 +268,8 @@ export default {
|
|||||||
//https://vuejs.org/v2/guide/migration.html#debounce-Param-Attribute-for-v-model-removed
|
//https://vuejs.org/v2/guide/migration.html#debounce-Param-Attribute-for-v-model-removed
|
||||||
//-----------------
|
//-----------------
|
||||||
let vm = this;
|
let vm = this;
|
||||||
|
let isATwoTermQuery = false;
|
||||||
|
let queryTerms = [];
|
||||||
//NOTE: empty query is valid; it means get the top 100 ordered by template order
|
//NOTE: empty query is valid; it means get the top 100 ordered by template order
|
||||||
let emptyQuery = false;
|
let emptyQuery = false;
|
||||||
if (this.searchEntry == null || this.searchEntry == "") {
|
if (this.searchEntry == null || this.searchEntry == "") {
|
||||||
@@ -275,8 +278,7 @@ export default {
|
|||||||
//Pre-process the query to validate and send conditionally
|
//Pre-process the query to validate and send conditionally
|
||||||
let val = this.searchEntry;
|
let val = this.searchEntry;
|
||||||
//get the discrete search terms and verify there are max two
|
//get the discrete search terms and verify there are max two
|
||||||
let isATwoTermQuery = false;
|
|
||||||
let queryTerms = [];
|
|
||||||
if (val.includes(" ")) {
|
if (val.includes(" ")) {
|
||||||
queryTerms = val.split(" ");
|
queryTerms = val.split(" ");
|
||||||
if (queryTerms.length > 2) {
|
if (queryTerms.length > 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user