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();
});
onMounted(() => {
setTimeout(()=>{
startAutoScroll();
},600)
// console.log(
// mainRef.value.scrollTop,
// mainRef.value.scrollHeight,

View File

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