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) {