Vue 3
import { createWebHistory, createRouter } from "vue-router"
const routes = [
{ path: '/registration', name: 'registration', component: Registration, props: true },
{ path: '/settings', name: 'settings', component: Settings, props: true }
]
const router = createRouter({
mode: 'history',
history: createWebHistory('/'),
routes
})
Находясь на по этой url
localhost:8080/settings
я вывожу в консоль параметры $route, но получаю вот это:
fullPath: "/"
hash: ""
matched: []
meta: {}
name: undefined
params: {}
path: "/"
query: {}
redirectedFrom: undefined
Почему так?