From e4c7d2b5f8e8487345782e94c5edf06a3219b8ff Mon Sep 17 00:00:00 2001 From: mo-bai <1873032855@qq.com> Date: Thu, 28 Apr 2022 19:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=AD=97=E8=BD=A6=E9=97=B4=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/digital-workshops/index.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages.json b/pages.json index 250b4c4..4486e53 100644 --- a/pages.json +++ b/pages.json @@ -15,7 +15,7 @@ "path": "pages/digital-workshops/index", "style": { "navigationBarTitleText": "数字车间", - "enablePullDownRefresh": false, + "enablePullDownRefresh": true, "navigationStyle": "custom" } }, diff --git a/pages/digital-workshops/index.vue b/pages/digital-workshops/index.vue index a65f3ae..958f108 100644 --- a/pages/digital-workshops/index.vue +++ b/pages/digital-workshops/index.vue @@ -119,9 +119,14 @@ export default { cameraList: [] } }, - onShow() { + onLoad() { this.getFactoryList() }, + onPullDownRefresh() { + console.log('下拉刷新') + this.getFactoryList() + uni.stopPullDownRefresh() + }, watch: { factoryId(val) { if (val === -1) {