vue-router路由传参

Hello!大家早上好呀 今天给大家分享一下vue-router路由传参的方法,要使用router-link跳转的前提必须要使用router-view以后使用router-link才可以生效,但是你不写router-view也是可以路由跳转的只不过是换一种写法而已。 this.$router.push( { path : ' /to '} ); 第一种传参方法 然后咱们在HelloWorld这个组
相关文章
相关标签/搜索