I have a question about keep-alive in vue-router. I want to create a structured application with list details, so I need to update comp details every time, but keep the scroll position of the comp list. Since the comp list and comp comp details are under different paths, I don't know how to solve this. If I add keep-alive in router-view, they retain their scroll position, which I do not want to comp comp details.
The route map is as follows. SongListis a comp list, and Learderboardis a comp comp
router.map({
'/': {
component: Home
},
'/songs': {
component: SongList
},
'/leaderboard/:songId': {
component: Leaderboard
}
})
source
share