mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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 = {}
|
let resolvedLayouts = {}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
head: <%= serialize(head).replace('titleTemplate(', 'function(') %>,
|
head: <%= serialize(head).replace('head(', 'function(').replace('titleTemplate(', 'function(') %>,
|
||||||
render(h, props) {
|
render(h, props) {
|
||||||
<% if (loading) { %>const loadingEl = h('nuxt-loading', { ref: 'loading' })<% } %>
|
<% if (loading) { %>const loadingEl = h('nuxt-loading', { ref: 'loading' })<% } %>
|
||||||
const layoutEl = h(this.layout || 'nuxt')
|
const layoutEl = h(this.layout || 'nuxt')
|
||||||
|
Loading…
Reference in New Issue
Block a user