Vue声明式和编程式导航

声明式:

<router-link :to='{path:"/detail",query:{obj:value}}'></router-link>

编程式:

this.$router.push({path:'/detail',query:{obj:value}});

detail.vue取值

this.$route.query.obj
原文地址:https://www.cnblogs.com/dengxiaobo/p/7826712.html