or.npm install -D nuxt-typed-router@legacy.Setup.Sign up the element in the nuxt.config.ts, done!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Consumption.pages/login. vue.When an option has no params specified, the params residential property will not also be actually accessible as an option in the modem.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'club')// Mistake!router.push(" https://vuejsfeed.com/login")// Great!router.push( title: 'login')// Excellent!pages/user/ [i.d.] vue.When a course has a needed param defined, getting through exactly to this path will throw a mistake if you don't supply a params home or if you place an inappropriate param.router.push( title: 'user-id')// Error!router.push( title: 'user-id', params: club: 'baz')// Error!router.push('/ user')// Mistake!const id="ey7878".router.push('/ consumer/$ id ')// Great!router.push( name: 'user-id', params: id)// Really good!router.push('/ user/$ id/ baguette')// Mistake!For settled paths, the params residential or commercial property is going to be actually readily available as well as the right way keyed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Great!