1 Commits

Author SHA1 Message Date
8ff45e210c [BugFix] 修复页面自动尝试加载更多的问题
All checks were successful
Build / build-and-test (push) Successful in 26s
2025-05-26 18:24:46 +08:00

View File

@ -37,7 +37,7 @@ onMounted(async () => {
isObserver = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
simpleSearchState.load()
if (simpleSearchState.state == 'ready') simpleSearchState.load()
}
})
}, { threshold: 1 })
@ -50,6 +50,7 @@ onBeforeUnmount(() => {
})
function onSubmit(data) {
if (simpleSearchState) simpleSearchState.start(data.src)
}