From 29b4dcb952d6abdf59a4db521e9ccf2dd3171fae Mon Sep 17 00:00:00 2001 From: CodeCreator <42488585+yanyongyu@users.noreply.github.com> Date: Sun, 23 Aug 2020 16:03:15 +0800 Subject: [PATCH] fix error version route --- packages/vuepress/vuepress-plugin-versioning/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuepress/vuepress-plugin-versioning/index.js b/packages/vuepress/vuepress-plugin-versioning/index.js index 5138822c..35eb9476 100644 --- a/packages/vuepress/vuepress-plugin-versioning/index.js +++ b/packages/vuepress/vuepress-plugin-versioning/index.js @@ -96,7 +96,7 @@ module.exports = (options, context) => { const filePath = path.resolve(basePath, relative) pages.push({ filePath, - relative + relative: relative.substring(relative.indexOf("/") + 1) }) }) return pages