From 9f3a28e400834994b9bd0210230bc04dd4070ba0 Mon Sep 17 00:00:00 2001 From: Fatpandac Date: Wed, 14 Sep 2022 19:09:03 +0800 Subject: [PATCH] fix: solved duplicate run addOldContributors in same page (#2286) --- site/docs/.vuepress/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/.vuepress/client.js b/site/docs/.vuepress/client.js index 4d667f35..ad348c49 100644 --- a/site/docs/.vuepress/client.js +++ b/site/docs/.vuepress/client.js @@ -40,7 +40,7 @@ export default defineClientConfig({ // add old docs contributors router.afterEach((to, from) => { - if (to.fullPath !== from.fullPath) { + if (to.path !== from.path) { addOldDocsContributors(); } });