路由页面{path:'task_detail/:routepath/:backRoute',name:'policy_task_detail',component:()=>import('/page/task/detail')}传参页面letbackRouteStr=JSON.stringify({name:'ipsec_policy',params:{name:'task'}})this.$router.push({name:'policy_task_detail',params:{routepath:'/ipsec/policy',backRoute:backRouteStr}})接收parametersthis.routepath=this.$route.params.routepaththis.backRoute=JSON.parse(this.$route.params.backRoute)效果和usingquery一样,会显示在url中。
