or.npm put up -D nuxt-typed-router@legacy.Arrangement.Sign up the component in the nuxt.config.ts, carried out!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a path has no params specified, the params property will not also be on call as a choice in the router.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Good!router.push( title: 'login')// Great!pages/user/ [id] vue.When a path has a needed param described, navigating precisely to this course is going to toss an error if you don't give a params property or even if you put an incorrect param.router.push( name: 'user-id')// Inaccuracy!router.push( label: 'user-id', params: pub: 'baz')// Error!router.push('/ individual')// Error!const i.d.="ey7878".router.push('/ consumer/$ i.d. ')// Really good!router.push( label: 'user-id', params: id)// Good!router.push('/ individual/$ i.d./ jewel')// Error!For dealt with options, the params residential property will be actually readily available and accurately keyed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Great!