瀏覽代碼

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

soobin 2 年之前
父節點
當前提交
829713e5c3
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      pages/User/equipmentStatusList.vue
  2. 1 0
      pages/User/merchantList.vue

+ 1 - 0
pages/User/equipmentStatusList.vue

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

+ 1 - 0
pages/User/merchantList.vue

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