diff --git a/src/layouts/index.js b/src/layouts/index.js index a91dc38..fd4ae35 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -8,7 +8,13 @@ class Template extends React.Component { render() { const { location, children } = this.props let header - if (location.pathname === '/') { + + let rootPath = `/` + if (typeof __PREFIX_PATHS__ !== `undefined` && __PREFIX_PATHS__) { + rootPath = __PATH_PREFIX__ + `/` + } + + if (location.pathname === rootPath) { header = (