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) {