or.npm put in -D nuxt-typed-router@legacy.Arrangement.Sign up the module in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a path has no params specified, the params property will not even be available as an option in the modem.router.push('/ login/bar')// Mistake!router.push( title: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Great!router.push( label: 'login')// Excellent!pages/user/ [id] vue.When an option has a needed param specified, navigating specifically to this path will toss an error if you don't provide a params property or even if you place an inappropriate param.router.push( label: 'user-id')// Error!router.push( label: 'user-id', params: club: 'baz')// Error!router.push('/ user')// Mistake!const i.d.="ey7878".router.push('/ consumer/$ i.d. ')// Excellent!router.push( label: 'user-id', params: id)// Good!router.push('/ individual/$ id/ jewel')// Inaccuracy!For addressed routes, the params residential property is going to be available as well as the right way entered.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!