mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: Handle head as a function in nuxt.config.js
This commit is contained in:
parent
4b79c38f41
commit
f4577e566c
@ -15,7 +15,7 @@ layoutsKeys.forEach(function (key, i) { %>
|
||||
let resolvedLayouts = {}
|
||||
|
||||
export default {
|
||||
head: <%= serialize(head).replace('titleTemplate(', 'function(') %>,
|
||||
head: <%= serialize(head).replace('head(', 'function(').replace('titleTemplate(', 'function(') %>,
|
||||
render(h, props) {
|
||||
<% if (loading) { %>const loadingEl = h('nuxt-loading', { ref: 'loading' })<% } %>
|
||||
const layoutEl = h(this.layout || 'nuxt')
|
||||
|
Loading…
Reference in New Issue
Block a user