mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-10 06:52:05 +08:00
fix scroll
This commit is contained in:
@@ -3,6 +3,10 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
// 始终滚动到顶部
|
||||
return { top: 0 }
|
||||
},
|
||||
routes: [
|
||||
{ path: '/', redirect: '/dashboard' },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user