[BugFix] 修复页面自动尝试加载更多的问题
All checks were successful
Build / build-and-test (push) Successful in 26s

This commit is contained in:
2025-05-26 18:24:46 +08:00
parent f60bf907b1
commit 8ff45e210c

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