vue-keep
can help you achieve forward refresh, and the previous page is still active when returning, which can optimize the experience better thanapp
. Replacerouter-view
withkeep-router-view
wherever page components need to be cached.
Support vue2.x
/vue3.x
npm install @bye_past/vue-keep
online docs: https://byepasthub.github.io/vue-keep/
online example: https://byepasthub.github.io/vue-keep/example