diff --git a/src/views/components/SecurityDoor.vue b/src/views/components/SecurityDoor.vue index c52a9fe..9590383 100644 --- a/src/views/components/SecurityDoor.vue +++ b/src/views/components/SecurityDoor.vue @@ -95,6 +95,7 @@ export default { this.scrollTimer = setInterval(() => { // scrollTop = bodyWrapper.scrollTop if (bodyWrapper.scrollTop + this.wrapperHeight >= this.tableData.length * 40) { + bodyWrapper.scrollTop = 0 this.getSecuritydoor() } else { bodyWrapper.scrollTop += this.displayNum * 40 diff --git a/src/views/components/WarehouseWarning.vue b/src/views/components/WarehouseWarning.vue index b4b08b0..713115d 100644 --- a/src/views/components/WarehouseWarning.vue +++ b/src/views/components/WarehouseWarning.vue @@ -91,6 +91,7 @@ export default { this.scrollTimer = setInterval(() => { // scrollTop = bodyWrapper.scrollTop if (bodyWrapper.scrollTop + this.wrapperHeight >= this.tableData.length * 40) { + bodyWrapper.scrollTop = 0 this.getAlarmInfo() } else { bodyWrapper.scrollTop += this.displayNum * 40