fix: page jumping issue when switching page

This commit is contained in:
Hakadao
2023-11-22 01:04:58 +08:00
parent 863445b67e
commit 4a848d1951

View File

@@ -77,10 +77,8 @@ const isTopbarFixed = computed(() => {
watch(
() => activatedPage.value,
() => {
setTimeout(() => {
const osInstance = scrollbarRef.value.osInstance()
osInstance.elements().viewport.scrollTop = 0
}, 500)
const osInstance = scrollbarRef.value.osInstance()
osInstance.elements().viewport.scrollTop = 0
},
)