this.$router.push()路由传值的方式
1、参数在地址栏显示:query传参
this.$router.push({path:"/workflowSet",query:{xml:res.data}});
接收参数方式:
let xml = this.$route.query.xml
2、参数不显示在地址栏:params传参
this.$router.push({ name: 'workflowSet', params: { xml:res.data }});
接收参数方式:
let xml = this.$route.params.xml