This commit is contained in:
2025-05-19 17:39:23 +08:00
parent a5eb5d1d90
commit 8153041b99
2 changed files with 14 additions and 10 deletions

View File

@ -306,10 +306,7 @@ const createScroll = () => {
timer.value = setInterval(() => {
tableWrapper.scrollTop += 1;
//判断滚动到底部,设置为0(可视高度+距离顶部 = 整个高度)
if (
tableWrapper.clientHeight + tableWrapper.scrollTop ==
tableWrapper.scrollHeight
) {
if ( tableWrapper.clientHeight + tableWrapper.scrollTop == tableWrapper.scrollHeight) {
tableWrapper.scrollTop = 0;
}
}, 100);