or.npm set up -D nuxt-typed-router@legacy.Setup.Sign up the element in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a course has no params specified, the params residential property will definitely not also be actually offered as an alternative in the modem.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'club')// Mistake!router.push(" https://vuejsfeed.com/login")// Good!router.push( title: 'login')// Good!pages/user/ [id] vue.When a path has actually a demanded param specified, getting through specifically to this option will definitely throw a mistake if you do not provide a params residential property or if you place an inappropriate param.router.push( name: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: club: 'baz')// Mistake!router.push('/ consumer')// Inaccuracy!const id="ey7878".router.push('/ consumer/$ i.d. ')// Good!router.push( name: 'user-id', params: id)// Good!router.push('/ customer/$ i.d./ baguette')// Error!For solved courses, the params home will definitely be offered as well as the right way entered.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Great!