mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
feat(vue-renderer): add head <base>
meta for spa (#7170)
This commit is contained in:
parent
20f086d0ce
commit
6b1faaed80
@ -77,6 +77,11 @@ export default class SPARenderer extends BaseRenderer {
|
||||
m.script.text() +
|
||||
m.noscript.text()
|
||||
|
||||
// Add <base href=""> meta if router base specified
|
||||
if (this.options._routerBaseSpecified) {
|
||||
meta.HEAD += `<base href="${this.options.router.base}">`
|
||||
}
|
||||
|
||||
// BODY_SCRIPTS (PREPEND)
|
||||
meta.BODY_SCRIPTS_PREPEND =
|
||||
m.meta.text({ pbody: true }) +
|
||||
|
Loading…
Reference in New Issue
Block a user