From a965b32f4cb9c1dc46cddac50aac11d3630cdef2 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Mon, 25 Mar 2024 14:50:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/search/index.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pages/search/index.vue b/pages/search/index.vue index 4189d3d..953ea2e 100644 --- a/pages/search/index.vue +++ b/pages/search/index.vue @@ -65,7 +65,7 @@ import pako from '@/core/pako' import { base64ToUint8Array,numberWithCommas} from '@/utils/util' - const pageSize = 2 + const pageSize = 10 export default { components: { @@ -112,12 +112,8 @@ * 搜索提交 */ async onSearch() { - if (this.searchValue == '') { - this.$error('请输入搜索关键词'); - } else { - await this.getGoodsList() - await this.getHomeListImage() - } + await this.getGoodsList() + await this.getHomeListImage() }, // 切换tab async changeTab(val) {