mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-29 13:56:21 +00:00
Adjusted some transition between routes
This commit is contained in:
@@ -27,6 +27,15 @@ const checkAuth = async () => {
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
scrollBehavior(){
|
||||
if (document.querySelector("main") !== null){
|
||||
document.querySelector("main").scrollTo({
|
||||
top: 0
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
routes: [
|
||||
{
|
||||
name: "Index",
|
||||
|
||||
Reference in New Issue
Block a user