vue router savedposition with ajax call code example
Example: vue router "savedposition" with ajax call
scrollBehavior (to, from, savedPosition) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve(savedPosition || { x: 0, y: 0 })
}, 500)
})
}