From 852d1cf78db5a5758fc087ba6cbdbaec08793dda Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Sun, 1 Apr 2018 15:41:37 +0800 Subject: [PATCH] =?UTF-8?q?fix[litemall-wx]:=E5=A6=82=E6=9E=9C=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=B2=A1=E6=9C=89=E8=BE=93=E5=85=A5=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97=E6=97=B6=EF=BC=8C=E5=88=99=E4=B8=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-wx/pages/search/search.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litemall-wx/pages/search/search.js b/litemall-wx/pages/search/search.js index 57eae413..3354ef97 100644 --- a/litemall-wx/pages/search/search.js +++ b/litemall-wx/pages/search/search.js @@ -107,6 +107,9 @@ Page({ }, getSearchResult(keyword) { + if(keyword === ''){ + return + } this.setData({ keyword: keyword, page: 1,