diff --git a/packages/@vuepress/core/lib/client/app.js b/packages/@vuepress/core/lib/client/app.js index bcccec1797..e89cb21abd 100644 --- a/packages/@vuepress/core/lib/client/app.js +++ b/packages/@vuepress/core/lib/client/app.js @@ -62,7 +62,7 @@ Vue.prototype.$withBase = function (path) { export function createApp (isServer) { const router = new Router({ - base: siteData.base, + base: window.__VUEPRESS_ROUTE_BASE__ || siteData.base, mode: 'history', fallback: false, routes,