Added a temp fix about going back to previous scroll position
This commit is contained in:
parent
3a0dace9a9
commit
78382d8834
@ -35,6 +35,17 @@ const titles = {
|
||||
const router = new Router({
|
||||
base: baseURL,
|
||||
mode: "history",
|
||||
scrollBehavior (to, from, saved) {
|
||||
if (saved) {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve({saved})
|
||||
}, 50)
|
||||
})
|
||||
}
|
||||
// Scroll to top if no saved
|
||||
return false
|
||||
},
|
||||
routes: [
|
||||
{
|
||||
path: "/login",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user