diff --git a/pages/device/device.vue b/pages/device/device.vue index fdeea1e..88741ee 100644 --- a/pages/device/device.vue +++ b/pages/device/device.vue @@ -25,7 +25,7 @@ - ----------------底线---------------- + ----------------底线---------------- @@ -116,8 +116,6 @@ export default { }, isRefresh(){ setTimeout(() => { - this.offset = 0 - this.pageNum = 1 this.search(false) uni.showToast({ icon: 'success', @@ -128,11 +126,13 @@ export default { }, setSearch(val) { this.query = val - this.offset = 0 - this.pageNum = 1 this.search(false) }, search(isAppend){ + if(!isAppend){ + this.offset = 0 + this.pageNum = 1 + } this.fetchDeviceList(this.query,this.limit,this.offset,isAppend) this.pageNum ++ this.offset = (this.pageNum - 1) * this.limit