or even.npm install -D nuxt-typed-router@legacy.Configuration.Sign up the component in the nuxt.config.ts, carried out!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Consumption.pages/login. vue.When an option has no params described, the params property will not also be available as a possibility in the router.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Great!router.push( title: 'login')// Good!pages/user/ [i.d.] vue.When an option has a demanded param described, browsing specifically to this route will definitely throw an inaccuracy if you do not deliver a params residential or commercial property or even if you put an inappropriate param.router.push( label: 'user-id')// Mistake!router.push( label: 'user-id', params: bar: 'baz')// Inaccuracy!router.push('/ customer')// Error!const id="ey7878".router.push('/ user/$ id ')// Really good!router.push( label: 'user-id', params: id)// Excellent!router.push('/ consumer/$ i.d./ baguette')// Error!For solved courses, the params residential property will be available and also correctly entered.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Excellent!