fix(bridge): execute metaInfo function (#3258)

This commit is contained in:
Daniel Roe 2022-02-16 17:57:11 +00:00 committed by GitHub
parent 3fccbfa252
commit 289d54eb24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,10 +134,10 @@ export const useNuxt2Meta = (metaOptions: Reffed<MetaInfo> | (() => Reffed<MetaI
const originalHead = app.head
app.head = function () {
const head = originalHead.call(this) || {}
return defu(unwrap(metaInfoFromOptions(metaOptions)), head)
return defu(unwrap(metaInfoFromOptions(metaOptions)()), head)
}
} else {
app.head = defu(unwrap(metaInfoFromOptions(metaOptions)), app.head)
app.head = defu(unwrap(metaInfoFromOptions(metaOptions)()), app.head)
}
}
}