diff --git a/core/helpers/index.ts b/core/helpers/index.ts index c508d9b562..9952130c57 100644 --- a/core/helpers/index.ts +++ b/core/helpers/index.ts @@ -173,9 +173,13 @@ export const processURLAddress = (url: string = '') => { } export function bottomVisible () { + if (isServer) { + return true + } const scrollY = window.scrollY const visible = window.innerHeight const pageHeight = document.documentElement.scrollHeight const bottomOfPage = visible + scrollY >= pageHeight + return bottomOfPage || pageHeight < visible }