Parcourir la source

增加下拉刷新

htc il y a 1 semaine
Parent
commit
b4858b884d
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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)=>{