mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(bridge): execute metaInfo function (#3258)
This commit is contained in:
parent
3fccbfa252
commit
289d54eb24
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user