0👍
For this kind of situation, use a state management pattern like vuex
(or pinia), and it will store your data after route change also.
For more clear context, go through this link:
https://vuex.vuejs.org/
- [Vuejs]-Mock window.location.reload with sinon
- [Vuejs]-Cannot show static image in assets on dynamic router-link
Source:stackexchange.com