added scroll to top per page middleware
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export default defineNuxtRouteMiddleware((to, from) => {
|
||||
if (to.path !== from.path && process.client) {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user