This commit is contained in:
Daniel Roe 2024-10-22 17:50:33 +01:00
parent 9e23aceb6a
commit a248f24f50
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@
"route.meta props generate by file": [
{
"component": "() => import("pages/page-with-props.vue")",
"meta": "mockMeta || {}",
"name": ""page-with-props"",
"path": ""/page-with-props"",
},
@ -351,4 +352,4 @@
"redirect": "mockMeta?.redirect",
},
],
}
}

View File

@ -621,6 +621,7 @@ describe('pages:generateRoutesFromFiles', () => {
name: 'page-with-props',
path: '/page-with-props',
file: `${pagesDir}/page-with-props.vue`,
meta: { [DYNAMIC_META_KEY]: new Set(['meta']) },
children: [],
props: true,
},