This commit is contained in:
zilong
2021-11-06 12:07:41 +08:00
parent f0e5ea4363
commit d70bf6738e
6 changed files with 63 additions and 27 deletions

View File

@@ -14,7 +14,7 @@ const keywords = ref("");
const elSearch = ref(null);
const search = () => {
if (keywords.value.length > 0){
if (keywords.value.trim().length > 0){
pubsub.publish("zp.toggleSearch");
// elSearch.value.blur()
store.commit('addSearchHistory', keywords.value)