From c1187e50595d02a71907fec7f8dd1561b8ba01d9 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Fri, 17 Feb 2023 17:20:24 +0800 Subject: [PATCH] =?UTF-8?q?(fix)=20=E9=A6=96=E9=A1=B5=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/pages/index/index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/weapp/pages/index/index.js b/weapp/pages/index/index.js index af5bf32..5d84a7a 100644 --- a/weapp/pages/index/index.js +++ b/weapp/pages/index/index.js @@ -112,14 +112,24 @@ Page({ * 生命周期函数--监听页面隐藏 */ onHide() { - + this.setData({ + dataList: [], + keyName: '', + page: 0, //当前页 + count: '', //总条数 + }) }, /** * 生命周期函数--监听页面卸载 */ onUnload() { - + this.setData({ + dataList: [], + keyName: '', + page: 0, //当前页 + count: '', //总条数 + }) }, /**