From 03cfa65525f2d41b179d8002339e0e6d8165950b Mon Sep 17 00:00:00 2001 From: gtz217 <535262213@qq.com> Date: Thu, 4 Aug 2022 09:21:34 +0800 Subject: [PATCH] 1 --- src/pages/eqInspection/eqInspection.vue | 10 ++++++---- src/pages/material/material.vue | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/pages/eqInspection/eqInspection.vue b/src/pages/eqInspection/eqInspection.vue index 9dcbe58..cb05205 100644 --- a/src/pages/eqInspection/eqInspection.vue +++ b/src/pages/eqInspection/eqInspection.vue @@ -130,10 +130,12 @@ export default { this.queryList.current += 1 if (this.isOver) { this.isOver = !this.isOver - this.getDataList() - setTimeout(() => { - this.isFirstScroll = true - }, 2000) + this.$nextTick(() => { + this.getDataList() + setTimeout(() => { + this.isFirstScroll = true + }, 2000) + }) } } }, diff --git a/src/pages/material/material.vue b/src/pages/material/material.vue index d387ac7..3b2520e 100644 --- a/src/pages/material/material.vue +++ b/src/pages/material/material.vue @@ -84,10 +84,12 @@ export default { this.queryList.current += 1 if (this.isOver) { this.isOver = !this.isOver - this.getDataList() - setTimeout(() => { - this.isFirstScroll = true - }, 2000) + this.$nextTick(() => { + this.getDataList() + setTimeout(() => { + this.isFirstScroll = true + }, 2000) + }) } } },