fix: set reachTop initial value is true

because the original webpage is at the top
This commit is contained in:
Hakadao
2024-05-30 23:43:40 +08:00
parent 8733ed012b
commit 42d69db97a

View File

@@ -38,7 +38,7 @@ const handleThrottledPageRefresh = useThrottleFn(() => handlePageRefresh.value?.
const handleThrottledReachBottom = useThrottleFn(() => handleReachBottom.value?.(), 500)
const handleThrottledBackToTop = useThrottleFn(() => handleBackToTop(), 1000)
const topBarRef = ref()
const reachTop = ref<boolean>(false)
const reachTop = ref<boolean>(true)
const isVideoPage = computed(() => {
if (/https?:\/\/(www.)?bilibili.com\/video\/.*/.test(location.href))