or.npm mount -D nuxt-typed-router@legacy.Configuration.Register the element in the nuxt.config.ts, carried out!export default defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a path has no params described, the params residential property will certainly certainly not also be actually available as an option in the modem.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'club')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Really good!pages/user/ [id] vue.When a path has a required param described, navigating exactly to this option will certainly throw an error if you don't give a params home or even if you place an inappropriate param.router.push( name: 'user-id')// Inaccuracy!router.push( title: 'user-id', params: bar: 'baz')// Mistake!router.push('/ consumer')// Error!const id="ey7878".router.push('/ customer/$ i.d. ')// Great!router.push( title: 'user-id', params: i.d.)// Good!router.push('/ user/$ id/ baguette')// Mistake!For resolved options, the params building will be available and accurately entered.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Good!