版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Feast_aw/article/details/81188551
//分配权限
checkClick(row){
this.$router.push({path:"/powerTree",params:{id:row.id}})
},
//在对应的页面接收传的这个参数
mounted() {
alert(this.$route.params.id)
},
这样出来就会是undefined
params只能用name来引入路由
checkClick(row){
this.$router.push({name:"PowerTree",params:{id:row.id}})
},
这样的话就拿到自己想要的参数
jquery可以用path写