From 1b692821e1fee9c62da4bf7bb4471c3a8e24c9c5 Mon Sep 17 00:00:00 2001 From: cc_zbp <487602586@qq.com> Date: Fri, 2 Jun 2023 16:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E6=8B=89=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }) }, /*获取分类列表*/