rename context.serverState to context.nuxtState

This commit is contained in:
Wu Haotian 2017-09-07 10:46:28 +08:00
parent 226a8701b4
commit e06aaaecc5

View File

@ -109,7 +109,7 @@ export function getContext (context, app) {
ctx.beforeNuxtRender = (fn) => context.beforeRenderFns.push(fn) ctx.beforeNuxtRender = (fn) => context.beforeRenderFns.push(fn)
} }
if (ctx.isClient && window.__NUXT__) { if (ctx.isClient && window.__NUXT__) {
ctx.serverState = window.__NUXT__ ctx.nuxtState = window.__NUXT__
} }
return ctx return ctx
} }