fix: solved duplicate run addOldContributors in same page (#2286)

This commit is contained in:
Fatpandac 2022-09-14 19:09:03 +08:00 committed by GitHub
parent 21081ad0ef
commit 9f3a28e400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ export default defineClientConfig({
// add old docs contributors // add old docs contributors
router.afterEach((to, from) => { router.afterEach((to, from) => {
if (to.fullPath !== from.fullPath) { if (to.path !== from.path) {
addOldDocsContributors(); addOldDocsContributors();
} }
}); });