浏览代码

增加下拉刷新

htc 1 周之前
父节点
当前提交
b4858b884d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/home.vue

+ 4 - 0
pages/home.vue

@@ -42,6 +42,10 @@
 			await this.getAgentModelList()
 			this.getDeviceList();
 		},
+		async onPullDownRefresh() {
+			await this.getAgentModelList()
+			this.getDeviceList();
+		},
 		methods:{
 			getAgentModelList(){
 				return new Promise((resolve,reject)=>{