this.$route取值不对问题

820 阅读1分钟

在页面加载时需要检测页面路由路由有内容却显示为空

this.$router.onReady(() => {
...
})

可以完美解决问题