Skip to content

Commit 9fba549

Browse files
committed
fix($core): routerBase will always get '/' (close: #1503)
1 parent 47c02ce commit 9fba549

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/client

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/client/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Vue.prototype.$withBase = function (path) {
6161
}
6262

6363
export function createApp (isServer) {
64-
const routerBase = typeof window !== 'undefined'
64+
const routerBase = typeof window !== 'undefined' && window.__VUEPRESS_ROUTER_BASE__
6565
? window.__VUEPRESS_ROUTER_BASE__
6666
: (siteData.routerBase || siteData.base)
6767

0 commit comments

Comments
 (0)