File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,9 @@ const SSRServerPlugin = {
2626 if ( this . $options . router !== undefined ) {
2727 this . $options . router . push ( context . url ) ;
2828 }
29- const head = typeof this . $options . head === 'function' ?
30- this . $options . head . call ( this ) :
31- this . $options . head || { } ;
32- this . $options . head = head ;
29+ this . $options . $getHead = typeof this . $options . head === 'function' ?
30+ this . $options . head . bind ( this ) :
31+ ( ) => ( this . $options . head || { } ) ;
3332 } ,
3433 } ) ;
3534 } ,
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class Renderer extends EventEmitter implements IRenderer {
144144
145145 if ( isPure ) return bodyStream ;
146146
147- const head = component . $options . head ;
147+ const head = component . $options . $getHead ( ) ;
148148 const mergedHead = VueHead . headMerge ( head , this . options . head ) ;
149149 const template = Renderer . getTemplateHtml ( mergedHead , context . state , this . options . global ) ;
150150 const transform = new StreamTransform ( template . head , template . tail ) ;
You can’t perform that action at this time.
0 commit comments