【发布时间】:2020-04-07 01:54:27
【问题描述】:
我正在尝试将params 传递到Nativescript 上的另一条路线,但它总是返回我undefined。我正在使用nativescript-vue-navigator。
当前在屏幕上我正在调用以下函数
this.$navigator.navigate('/map', { props: { name: 'Rafael Augusto'} } )
在我的地图屏幕上,我正在尝试像这样
export default {
props: ['name'],
mounted(){
console.log(this.name)
}
}
【问题讨论】:
-
你能分享一个可以重现问题的 Playground 示例吗?
标签: javascript vue.js nativescript nativescript-vue