Browse Source

搜索优化

master
wanghongjun 2 years ago
parent
commit
a965b32f4c
  1. 10
      pages/search/index.vue

10
pages/search/index.vue

@ -65,7 +65,7 @@
import pako from '@/core/pako' import pako from '@/core/pako'
import { base64ToUint8Array,numberWithCommas} from '@/utils/util' import { base64ToUint8Array,numberWithCommas} from '@/utils/util'
const pageSize = 2 const pageSize = 10
export default { export default {
components: { components: {
@ -112,12 +112,8 @@
* 搜索提交 * 搜索提交
*/ */
async onSearch() { async onSearch() {
if (this.searchValue == '') { await this.getGoodsList()
this.$error('请输入搜索关键词'); await this.getHomeListImage()
} else {
await this.getGoodsList()
await this.getHomeListImage()
}
}, },
// tab // tab
async changeTab(val) { async changeTab(val) {

Loading…
Cancel
Save