2
0
mirror of https://github.com/acepanel/acepanel.github.io.git synced 2026-02-04 09:13:09 +08:00

fix: lint

This commit is contained in:
2025-05-29 22:07:22 +08:00
parent 50fefd50b7
commit 9731fdf68a

View File

@@ -1,6 +1,6 @@
import {type DefaultTheme, defineConfig} from 'vitepress'
const locale = ''
const locale = 'en'
const resp = await (await fetch('https://panel.haozi.net/api/versions')).json()
const versions = resp.data.slice(0, 10).map((item: any) => {
@@ -33,7 +33,7 @@ export const config = defineConfig({
...versions.map((version: string) => {
return {
text: version,
link: locale ? `/${locale}/version-${version}` : `/version-${version}`
link: locale != 'en' ? `/${locale}/version-${version}` : `/version-${version}`
}
})
]