From 466a2338efea3453ad1a433829327f6bc3ca6bbe Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Fri, 21 Jun 2024 17:02:45 +0800 Subject: [PATCH] gx --- src/view/hygiene.vue | 5 ++++- src/view/work.vue | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/view/hygiene.vue b/src/view/hygiene.vue index e91b0b7..d8486a9 100644 --- a/src/view/hygiene.vue +++ b/src/view/hygiene.vue @@ -271,7 +271,10 @@ onBeforeMount(async () => { getData(); }); onMounted(() => { - startAutoScroll(); + setTimeout(()=>{ + startAutoScroll(); + },600) + // console.log( // mainRef.value.scrollTop, // mainRef.value.scrollHeight, diff --git a/src/view/work.vue b/src/view/work.vue index 19adcf4..9f2ffa8 100644 --- a/src/view/work.vue +++ b/src/view/work.vue @@ -454,7 +454,9 @@ const startAutoSwitching = () => { interval = setInterval(toggleShow, 6000); // 每6秒切换一次 }; onMounted(() => { - startAutoScroll(); + setTimeout(()=>{ + startAutoScroll(); + },600) startAutoSwitching(); });