Skip to content

Commit

Permalink
fix($core): routerBase will always get '/' (close: #1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Apr 2, 2019
1 parent 47c02ce commit 9fba549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Vue.prototype.$withBase = function (path) {
}

export function createApp (isServer) {
const routerBase = typeof window !== 'undefined'
const routerBase = typeof window !== 'undefined' && window.__VUEPRESS_ROUTER_BASE__
? window.__VUEPRESS_ROUTER_BASE__
: (siteData.routerBase || siteData.base)

Expand Down

0 comments on commit 9fba549

Please sign in to comment.