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({
|
const router = new Router({
|
||||||
base: baseURL,
|
base: baseURL,
|
||||||
mode: "history",
|
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: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user