or.npm put in -D nuxt-typed-router@legacy.Configuration.Sign up the element in the nuxt.config.ts, performed!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a route has no params determined, the params building will definitely certainly not even be readily available as an option in the hub.router.push('/ login/bar')// Mistake!router.push( name: 'login', params: foo: 'club')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Really good!pages/user/ [i.d.] vue.When a route has actually a demanded param specified, browsing exactly to this path will definitely toss a mistake if you don't offer a params residential property or even if you put an inappropriate param.router.push( name: 'user-id')// Mistake!router.push( name: 'user-id', params: bar: 'baz')// Inaccuracy!router.push('/ customer')// Inaccuracy!const id="ey7878".router.push('/ individual/$ id ')// Excellent!router.push( name: 'user-id', params: id)// Great!router.push('/ user/$ i.d./ jewel')// Mistake!For settled courses, the params property is going to be readily available and accurately entered.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!