We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b292c9 commit 207de0cCopy full SHA for 207de0c
docs/.vitepress/theme/versioning/VersionSwitcher.vue
@@ -20,6 +20,7 @@ const isLatest = ref(true);
20
function refresh() {
21
let version = latestVersion.value;
22
let refreshPage = false;
23
+ isLatest.value = true;
24
25
for (const v of versionList) {
26
if (window.location.pathname.startsWith(`/${v}/`)) {
@@ -41,7 +42,7 @@ function refresh() {
41
42
}
43
44
async function init() {
- const versionDataFileUrl = `${window.location.origin}/9.4.2/versions.yml`;
45
+ const versionDataFileUrl = `${window.location.origin}/versions.yml`;
46
const versionDataFileContent = await (await fetch(versionDataFileUrl)).text();
47
const versionData = parse(versionDataFileContent);
48
versionList = versionData.versions;
0 commit comments