{
path: '/deforest/recordShow',
name: '',
query:{
id:'',
recordType:''
},
component: ()=>import('../pages/deforest/record/recordShow.vue'),
},
配置界面里需要配置query,
跳转就需要对query进行设置
this.$router.push({path: "/deforest/recordShow/",query:{id:params.row.id,recordType:"1"}}),
还可以直接就在path上添加
{
path: '/deforest/recordShow/:id/:recordType',
name: '',
component: ()=>import('../pages/deforest/record/recordShow.vue'),
},