fix(vue-renderer): await on spa:templateParams hook (#5619)

fixes #5601
This commit is contained in:
Xin Du (Clark) 2019-04-29 09:35:33 +01:00 committed by Pooya Parsa
parent 83e378ad5e
commit 56d5c0c548

View File

@ -137,7 +137,7 @@ export default class SPARenderer extends BaseRenderer {
}
// Call spa:templateParams hook
this.serverContext.nuxt.callHook('vue-renderer:spa:templateParams', templateParams)
await this.serverContext.nuxt.callHook('vue-renderer:spa:templateParams', templateParams)
// Render with SPA template
const html = this.renderTemplate(this.serverContext.resources.spaTemplate, templateParams)