Commit d569e9cd authored by tianhongyang's avatar tianhongyang

temp merge

parent 852bedab
......@@ -183,11 +183,26 @@ export default {
},
async searchConsulting(keywords) {
try {
if ((keywords || keywords == "0") && keywords?.toString()?.trim() && keywords?.toString()?.trim()?.length >= 1) {
this.clearSearchTimer();
this.searchTimer = setTimeout(async () => {
await this.searchConsultingHandle(keywords.toString().trim());
}, 1000);
}
} catch (error) {
}
},
async searchConsultingHandle(keywords) {
try {
const searchResult = await searchConsultingApi(keywords);
if (searchResult.code == 200) {
console.log(searchResult);
}
} catch (error) {
console.log(error);
}
},
clearSearchTimer() {
clearTimeout(this.searchTimer);
this.searchTimer = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment