fix[litemall-wx]:如果用户没有输入关键字时,则不搜索。

This commit is contained in:
Junling Bu
2018-04-01 15:41:37 +08:00
parent bf84c2c145
commit 852d1cf78d

View File

@@ -107,6 +107,9 @@ Page({
},
getSearchResult(keyword) {
if(keyword === ''){
return
}
this.setData({
keyword: keyword,
page: 1,