mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +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,
|
app: app,
|
||||||
<%= (store ? 'store: context.store,' : '') %>
|
<%= (store ? 'store: context.store,' : '') %>
|
||||||
route: (context.to ? context.to : context.route),
|
route: (context.to ? context.to : context.route),
|
||||||
generatePayload : context.generatePayload,
|
payload : context.payload,
|
||||||
error: context.error,
|
error: context.error,
|
||||||
base: '<%= router.base %>',
|
base: '<%= router.base %>',
|
||||||
env: <%= JSON.stringify(env) %>
|
env: <%= JSON.stringify(env) %>
|
||||||
|
@ -103,7 +103,7 @@ export default async function () {
|
|||||||
await waitFor(n++ * this.options.generate.interval)
|
await waitFor(n++ * this.options.generate.interval)
|
||||||
let html
|
let html
|
||||||
try {
|
try {
|
||||||
const res = await this.renderRoute(route, { _generate: true, generatePayload: payload })
|
const res = await this.renderRoute(route, { _generate: true, payload })
|
||||||
html = res.html
|
html = res.html
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
errors.push({ type: 'handled', route, error: res.error })
|
errors.push({ type: 'handled', route, error: res.error })
|
||||||
|
Loading…
Reference in New Issue
Block a user