我有数据要传递给其他页面。
使用this.$router.push({ name: 'toAnotherPage', params: { info: this.info}})
非常有效,因为我使用SPA时没有刷新新页面。如果我可以让它刷新新页面,我会没事的。
使用window.location.href = '/toAnotherPage?info=' + this.info
将info
重定向到新页面但有挑战检索它。
我尝试使用this.$route.query.info
但没有工作。
我需要帮助。感谢