or.npm install -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, done!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Use.pages/login. vue.When a route has no params specified, the params residential property will definitely certainly not even be actually available as an alternative in the router.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( label: 'login')// Good!pages/user/ [i.d.] vue.When a route has a required param determined, navigating precisely to this path is going to toss an error if you do not supply a params home or if you place an incorrect param.router.push( name: 'user-id')// Error!router.push( name: 'user-id', params: pub: 'baz')// Error!router.push('/ customer')// Error!const i.d.="ey7878".router.push('/ customer/$ i.d. ')// Excellent!router.push( name: 'user-id', params: i.d.)// Good!router.push('/ individual/$ id/ baguette')// Inaccuracy!For dealt with routes, the params residential property will be actually on call and also appropriately entered.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Really good!