使用Next.js在url中传递道具

使用Next.js在url中传递道具,next.js,Next.js,我使用以下方法在url中传递道具: const sendPropsInRoute=(数据)=>{ 路由器推送({ 路径名:'/cars/car', 查询:{data:JSON.stringify(data)}, }, `/机构/机构`, { 肤浅:是的, }, ) }

我使用以下方法在url中传递道具:

const sendPropsInRoute=(数据)=>{
路由器推送({
路径名:'/cars/car',
查询:{data:JSON.stringify(data)},
},
`/机构/机构`,
{
肤浅:是的,
},
)
}