mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: page jumping issue when switching page
This commit is contained in:
@@ -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
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user