From 147cc1dfe4a35451ca0e651a771dc9d3ca377b1e Mon Sep 17 00:00:00 2001 From: chenlong Date: Fri, 15 Sep 2023 18:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Addr/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/Addr/index.vue b/pages/Addr/index.vue index e2f0d08..b71bfdc 100644 --- a/pages/Addr/index.vue +++ b/pages/Addr/index.vue @@ -246,7 +246,11 @@ } this.status = 'loading'; getAddressList(this.pages).then(res => { - this.addrList.push.apply(this.addrList,res.data) + if (this.pages.page === 1) { + this.addrList = res.data; + }else{ + this.addrList.push(...res.data); + } this.pages.page++; if(res.data.length === 0){ this.status = 'nomore';