This commit is contained in:
姚宇浩 2024-06-21 17:02:45 +08:00
parent 9a0ca931f4
commit 466a2338ef
2 changed files with 7 additions and 2 deletions

View File

@ -271,7 +271,10 @@ onBeforeMount(async () => {
getData(); getData();
}); });
onMounted(() => { onMounted(() => {
setTimeout(()=>{
startAutoScroll(); startAutoScroll();
},600)
// console.log( // console.log(
// mainRef.value.scrollTop, // mainRef.value.scrollTop,
// mainRef.value.scrollHeight, // mainRef.value.scrollHeight,

View File

@ -454,7 +454,9 @@ const startAutoSwitching = () => {
interval = setInterval(toggleShow, 6000); // 6 interval = setInterval(toggleShow, 6000); // 6
}; };
onMounted(() => { onMounted(() => {
setTimeout(()=>{
startAutoScroll(); startAutoScroll();
},600)
startAutoSwitching(); startAutoSwitching();
}); });