diff --git a/docs/.vuepress/config/redirectRouter.js b/docs/.vuepress/config/redirectRouter.js index 31f57993ba28c2ca1a44f82449fe66f6ff0547da..1310b85ba986676bf6493b6bfab1053f9d23dfb5 100644 --- a/docs/.vuepress/config/redirectRouter.js +++ b/docs/.vuepress/config/redirectRouter.js @@ -130,7 +130,7 @@ export default ({ fullPath, path, hash }) => { const routerMapKeys = Object.keys(routerMap) let returnPathConfig = null routerMapKeys.forEach(key => { - if (path.indexOf(key) === 0) { + if (path.indexOf(key) === 0 && routerMap[key].indexOf(key) !== 0 && routerMap[key] !== path) { return returnPathConfig = { path: path.replace(key, routerMap[key]), hash,