feat: add transitions between pages
This commit is contained in:
parent
f2b408fce5
commit
68a43b6b9c
9 changed files with 269 additions and 227 deletions
|
@ -10,7 +10,11 @@ import CircleInfoIcon from '@/assets/icons/CircleInfoIcon.vue'
|
|||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
scrollBehavior: () => {
|
||||
return { top: 0 }
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({ top: 0 })
|
||||
}, 500)
|
||||
})
|
||||
},
|
||||
routes: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue