Browse Source

增加下拉刷新

htc 1 week ago
parent
commit
b4858b884d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/home.vue

+ 4 - 0
pages/home.vue

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