docs: add a bit more detail in the definePageMeta warning to specify it needs to be in a page (#8923)

This commit is contained in:
kevin olson 2022-11-14 04:28:31 -06:00 committed by GitHub
parent 8c4ff5c585
commit 79d5634c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,8 @@ declare module 'vue-router' {
const warnRuntimeUsage = (method: string) => const warnRuntimeUsage = (method: string) =>
console.warn( console.warn(
`${method}() is a compiler-hint helper that is only usable inside ` + `${method}() is a compiler-hint helper that is only usable inside ` +
'the script block of a single file component. Its arguments should be ' + 'the script block of a single file component which is also a page. Its arguments should be ' +
'compiled away and passing it at runtime has no effect.' 'compiled away and passing it at runtime has no effect.'
) )
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars