Browse Source

fix[litemall-wx]: 用户没有填写关键字,则采用默认关键字。

Junling Bu 7 years ago
parent
commit
eb499e85a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      litemall-wx/pages/search/search.js

+ 1 - 1
litemall-wx/pages/search/search.js

@@ -108,7 +108,7 @@ Page({
   },
   getSearchResult(keyword) {
     if(keyword === ''){
-      return
+      keyword = this.data.defaultKeyword.keyword;
     }
     this.setData({
       keyword: keyword,