Prechádzať zdrojové kódy

修改设备列表刷新增多的问题

soobin 2 rokov pred
rodič
commit
829713e5c3

+ 1 - 0
pages/User/equipmentStatusList.vue

@@ -365,6 +365,7 @@
 			...mapState(['loginUser']),
 		},
 		onPullDownRefresh() {
+			this.equipmentList = [];
 			this.globalUser.offset = 1;
 			this.globalUser.limit = 20;
 			this.getEquipmentListData();

+ 1 - 0
pages/User/merchantList.vue

@@ -85,6 +85,7 @@
 			}
 		},
 		onPullDownRefresh() {
+			this.equipmentList = [];
 			this.globalUser.offset = 1;
 			this.globalUser.limit = 20;
 			this.getEquipmentListData();