mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Fix // when no base given
This commit is contained in:
parent
4c33c3c7f6
commit
a30ce76b0c
@ -11,7 +11,9 @@ const isDev = <%= isDev %>
|
|||||||
const _app = new Vue(app)
|
const _app = new Vue(app)
|
||||||
|
|
||||||
// Fix issue from vue-router Abstract mode with base (used for server-side rendering)
|
// Fix issue from vue-router Abstract mode with base (used for server-side rendering)
|
||||||
|
<% if (router.base !== '/') { %>
|
||||||
router.history.base = '<%= router.base %>'
|
router.history.base = '<%= router.base %>'
|
||||||
|
<% } %>
|
||||||
|
|
||||||
// This exported function will be called by `bundleRenderer`.
|
// This exported function will be called by `bundleRenderer`.
|
||||||
// This is where we perform data-prefetching to determine the
|
// This is where we perform data-prefetching to determine the
|
||||||
|
Loading…
Reference in New Issue
Block a user