简体   繁体   中英

Is it possible to get same component data properties when i came back to the same URL through back button in vuejs?

Actually in current page, I am changing the properties of component through some Drop-down,buttons and sliders.Then after i go to some other pages.Again after coming to the same page through back buttons,the page is loading freshly.so i want the page with previous settings.I tried with Param but its making my URL lengthy(have so many properties) as i have to set every property as a param.How to achieve this?

You might want to look into Vuex to store your data so your page can read that data whenever the user enters the page a second time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM