ИН

Size: a a a
ИН
A
A
А
AD
AD
AD
СР
AD
СР
AD
AD
КМ
А
router: {fetch начал вызываться дважды
extendRoutes(routes, resolve) {
routes.push({
name: 'properties-state',
path: '/properties/:state',
component: resolve(__dirname, 'pages/index.vue'),
props: true
});
}
async fetch() {там какой-то странный undefined в параметре появляется
console.log(this.$nuxt.$route);
{
name: 'properties-state',
meta: {},
path: '/properties/alabama',
hash: '',
query: {},
params: {
state: 'alabama'
},
fullPath: '/properties/alabama',
matched: [
{
path: '/properties/:state',
regex: /^\/properties\/((?:[^\/]+?))(?:\/(?=$))?$/i,
components: [Object],
alias: [],
instances: [Object],
enteredCbs: {},
name: 'properties-state',
parent: undefined,
matchAs: undefined,
redirect: undefined,
beforeEnter: undefined,
meta: {},
props: [Object]
}
]
}
{
name: 'properties-state',
meta: {},
path: '/properties/undefined',
hash: '',
query: {},
params: {
state: 'undefined'
},
fullPath: '/properties/undefined',
matched: [
{
path: '/properties/:state',
regex: /^\/properties\/((?:[^\/]+?))(?:\/(?=$))?$/i,
components: [Object],
alias: [],
instances: [Object],
enteredCbs: {},
name: 'properties-state',
parent: undefined,
matchAs: undefined,
redirect: undefined,
beforeEnter: undefined,
meta: {},
props: [Object]
}
]
}
E
А
V
V
AD
АС