Commit eb499e85 authored by Junling Bu's avatar Junling Bu
Browse files

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

parent b23e6190
...@@ -108,7 +108,7 @@ Page({ ...@@ -108,7 +108,7 @@ Page({
}, },
getSearchResult(keyword) { getSearchResult(keyword) {
if(keyword === ''){ if(keyword === ''){
return keyword = this.data.defaultKeyword.keyword;
} }
this.setData({ this.setData({
keyword: keyword, keyword: keyword,
......
Supports Markdown
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