使用path跳转路由传参,用query,不可用params
//给子组件传入参数,
this.$router.push({ path: "/condition", query: { index: 1 } });
//子组件接收参数
this.$route.query.index
//给子组件传入参数
this.$router.push({ name: "/condition", params : { index: 1 } });
//子组件接收参数
this.$route.params .index