vue获得路由传的参数

vue获得路由传的参数

1.在router文件夹下的index.js的路由配置

{
    path:'/xxx/:abc'
}

2.获取路由传的参数值

this.$route.params.adc

猜你喜欢

转载自blog.csdn.net/qq_44255146/article/details/115965116