this.$router.push({ name: "xxxxxx",//index页面的name属性 params: { id: xxx, type: "xxx", //要传递的参数 }, });
参数接收:
let routerParamsId = this.$route.params.id let routerParamsType = this.$route.params.type
this.$router.push({ name: "xxxxxx",//index页面的name属性 params: { id: xxx, type: "xxx", //要传递的参数 }, });
参数接收:
let routerParamsId = this.$route.params.id let routerParamsType = this.$route.params.type