Skip to content

Commit f8276b4

Browse files
committed
fix: fix double-load when first visit
1 parent 38c6f44 commit f8276b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/.vitepress/theme/versioning/VersionSwitcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function refresh() {
3030
}
3131
}
3232
33-
if (currentVersion.value !== version) {
33+
if (currentVersion.value !== '' && currentVersion.value !== version) {
3434
refreshPage = true;
3535
changingVersion.value = true;
3636
}

0 commit comments

Comments
 (0)