From 98a61ab7b5b86c52b13c1099a37776d35a845333 Mon Sep 17 00:00:00 2001 From: hdx Date: Fri, 25 Aug 2023 13:12:39 +0800 Subject: [PATCH] =?UTF-8?q?long-list:=20=E4=BD=BF=E7=94=A8=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E8=BF=90=E7=AE=97=E7=AC=A6=E5=A1=AB=E5=85=85=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/long-list/long-list-page.uvue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pages/template/long-list/long-list-page.uvue b/pages/template/long-list/long-list-page.uvue index 19e531d4..5cc2fdb1 100644 --- a/pages/template/long-list/long-list-page.uvue +++ b/pages/template/long-list/long-list-page.uvue @@ -114,9 +114,7 @@ return } - responseData.data.forEach((item) => { - this.dataList.push(item) - }) + this.dataList.push(...responseData.data) if (responseData.data.length == 0) { this.isEnded = true -- GitLab