fix(nuxt): close payload object (#23817)

This commit is contained in:
Daniel Roe 2023-10-20 11:49:26 +01:00 committed by GitHub
parent af1b5a0181
commit 785b7a3f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -548,7 +548,7 @@ function renderPayloadScript (opts: { ssrContext: NuxtSSRContext, data?: any, sr
return [
{
type: 'module',
innerHTML: `import p from "${opts.src}";window.__NUXT__={...p,...(${devalue(opts.data)})`
innerHTML: `import p from "${opts.src}";window.__NUXT__={...p,...(${devalue(opts.data)})}`
}
]
}