mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
renamed generatePayload -> payload
This commit is contained in:
parent
b2d5186e39
commit
7cfa548ddf
@ -61,7 +61,7 @@ export function getContext (context, app) {
|
||||
app: app,
|
||||
<%= (store ? 'store: context.store,' : '') %>
|
||||
route: (context.to ? context.to : context.route),
|
||||
generatePayload : context.generatePayload,
|
||||
payload : context.payload,
|
||||
error: context.error,
|
||||
base: '<%= router.base %>',
|
||||
env: <%= JSON.stringify(env) %>
|
||||
|
@ -103,7 +103,7 @@ export default async function () {
|
||||
await waitFor(n++ * this.options.generate.interval)
|
||||
let html
|
||||
try {
|
||||
const res = await this.renderRoute(route, { _generate: true, generatePayload: payload })
|
||||
const res = await this.renderRoute(route, { _generate: true, payload })
|
||||
html = res.html
|
||||
if (res.error) {
|
||||
errors.push({ type: 'handled', route, error: res.error })
|
||||
|
Loading…
Reference in New Issue
Block a user