forked from Mirrors/elk
chore: update watch
This commit is contained in:
parent
3270140c3f
commit
a7414bb59e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|||
}
|
||||
})
|
||||
|
||||
watch(() => [track.value, y.value, route], ([trackEnabled, scrollPosition, r]) => {
|
||||
watch([track, y, () => route], ([trackEnabled, scrollPosition, r]) => {
|
||||
if (trackEnabled && (!r.meta || !r.meta?.noScrollTrack))
|
||||
storage.value[r.fullPath] = Math.floor(scrollPosition)
|
||||
}, { immediate: true, flush: 'pre' })
|
||||
|
|
Loading…
Reference in a new issue