minhnt-dev: scroll smooth

This commit is contained in:
MoreStrive
2024-07-08 17:03:33 +07:00
parent 81bfa351e8
commit 76b2fa4771
4 changed files with 18 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
export default defineNuxtPlugin((nuxtApp : any) => {
nuxtApp.$router.options.scrollBehavior = () => {
return { left: 0, top: 0 }
}
})