or.npm put in -D nuxt-typed-router@legacy.Setup.Sign up the element in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Use.pages/login. vue.When a path has actually no params determined, the params property will certainly certainly not even be actually offered as an option in the router.router.push('/ login/bar')// Error!router.push( name: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( name: 'login')// Excellent!pages/user/ [i.d.] vue.When an option has a called for param defined, getting through exactly to this route will toss an inaccuracy if you don't provide a params home or even if you put an incorrect param.router.push( title: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: club: 'baz')// Mistake!router.push('/ individual')// Inaccuracy!const i.d.="ey7878".router.push('/ consumer/$ id ')// Good!router.push( name: 'user-id', params: i.d.)// Really good!router.push('/ customer/$ i.d./ jewel')// Mistake!For settled options, the params home will definitely be actually accessible and properly entered.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Really good!