mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-29 05:48:49 +03:00
12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
export default defineNuxtPlugin((/* nuxtApp */) => {
|
|
return {
|
|
provide: {
|
|
scrollToTop: () => {
|
|
// if (typeof force === 'boolean' && force)
|
|
// nuxtApp.$trackScroll.forceScroll()
|
|
|
|
// window.scrollTo({ top: 0, left: 0, behavior: 'smooth' })
|
|
},
|
|
},
|
|
}
|
|
})
|