mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +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)
|
||||
|
||||
// Fix issue from vue-router Abstract mode with base (used for server-side rendering)
|
||||
<% if (router.base !== '/') { %>
|
||||
router.history.base = '<%= router.base %>'
|
||||
<% } %>
|
||||
|
||||
// This exported function will be called by `bundleRenderer`.
|
||||
// This is where we perform data-prefetching to determine the
|
||||
|
Loading…
Reference in New Issue
Block a user