![](/img/trans.png)
[英]How can I store the data I get from a Promise back into an object with the same key it came from?
[英]Is it possible to get same component data properties when i came back to the same URL through back button in vuejs?
实际上在当前页面中,我正在通过一些下拉,按钮和滑块更改组件的属性。然后在我 go 到其他一些页面之后。再次通过后退按钮进入同一页面后,页面正在重新加载。所以我想要具有先前设置的页面。我尝试使用 Param,但它使我的 URL 冗长(有这么多属性),因为我必须将每个属性设置为参数。如何实现这一点?
您可能希望查看Vuex来存储您的数据,以便您的页面可以在用户第二次进入页面时读取该数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.