diff --git a/pages/index/index.vue b/pages/index/index.vue index d554ffc..1f0414f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -179,9 +179,9 @@ graphicLstApi(this.where).then(res => { this.cateGoods.push(...res.data.list) if (res.data.list.length < this.where.limit) { - this.status == 'nomore' + this.status = 'nomore' } - res.data.list.length <= 0 ? this.emptyShow = true : this.emptyShow = false + if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true }) }, /*获取分类列表*/