0π
β
In this case, this was the answer:
const router = createRouter({ history: createWebHashHistory(), routes, scrollBehavior() { document.getElementById("RouterView").scrollTop = 0; }, });
Source:stackexchange.com