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(); });