We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb84c5c commit 5e12b49Copy full SHA for 5e12b49
packages/@vuepress/core/lib/client/app.js
@@ -61,8 +61,12 @@ Vue.prototype.$withBase = function (path) {
61
}
62
63
export function createApp (isServer) {
64
+ const routerBase = typeof window !== 'undefined'
65
+ ? window.__VUEPRESS_ROUTER_BASE__
66
+ : (siteData.routerBase || siteData.base)
67
+
68
const router = new Router({
- base: window.__VUEPRESS_ROUTE_BASE__ || siteData.base,
69
+ base: routerBase,
70
mode: 'history',
71
fallback: false,
72
routes,
0 commit comments