我想加入,以便可以交换登录页面 <-> 注册页面 如果任何一个都成功,那么我要转到应用页面
在应用程序组件中
logout(){
this.$navigateTo(Router["/Login"].component , {
clearHistory: true
}); //returns createcomment and doesnot navigate
}
但是,这只会在终端中返回 createcomment 。
这与导航堆栈有关,但是我不知道如何使它起作用,因为对此没有任何文档。
当我注销到注册页面时,它有效,但在登录页面
上却不起作用logout(){
this.$navigateTo(Router["/Signup"].component , {
clearHistory: true
}); //navigates fine
}
是因为我的main.ts上有LoginPage吗?
render: h => h('frame', [h(Login)])
我正在将nativescript-vue与typescript和class-components一起使用。我也有手动路由器。如您所料,我对Vuejs和NS都比较陌生
答案 0 :(得分:0)
Vue路由器(不受支持) 当前,不支持与Vue Router集成。在小组解决问题之前,请使用手动路由。 参见https://nativescript-vue.org/en/docs/routing/vue-router/