Fix // when no base given

This commit is contained in:
Sébastien Chopin 2016-12-04 19:14:22 +01:00
parent 4c33c3c7f6
commit a30ce76b0c

View File

@ -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