diff --git a/.vitepress/config/en.ts b/.vitepress/config/en.ts index f039fe4..33a7b1c 100644 --- a/.vitepress/config/en.ts +++ b/.vitepress/config/en.ts @@ -2,7 +2,7 @@ import {type DefaultTheme, defineConfig} from 'vitepress' const locale = 'en' -const resp = await (await fetch('https://panel.haozi.net/api/versions')).json() +const resp = await (await fetch('https://api.acepanel.net/versions?locale=en')).json() const versions = resp.data.slice(0, 10).map((item: any) => { return item.version }) diff --git a/.vitepress/config/zh_CN.ts b/.vitepress/config/zh_CN.ts index 3684896..e156e4b 100644 --- a/.vitepress/config/zh_CN.ts +++ b/.vitepress/config/zh_CN.ts @@ -1,6 +1,6 @@ import { type DefaultTheme, defineConfig } from 'vitepress'; const locale = "zh_CN"; -const resp = await (await fetch('https://panel.haozi.net/api/versions')).json(); +const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_CN')).json(); const versions = resp.data.slice(0, 10).map((item: any) => { return item.version; }); diff --git a/.vitepress/config/zh_TW.ts b/.vitepress/config/zh_TW.ts index 1235123..18c2bf0 100644 --- a/.vitepress/config/zh_TW.ts +++ b/.vitepress/config/zh_TW.ts @@ -1,6 +1,6 @@ import { type DefaultTheme, defineConfig } from 'vitepress'; const locale = "zh_TW"; -const resp = await (await fetch('https://panel.haozi.net/api/versions')).json(); +const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_TW')).json(); const versions = resp.data.slice(0, 10).map((item: any) => { return item.version; }); diff --git a/en/version-[version].paths.ts b/en/version-[version].paths.ts index a61be8b..2e23b89 100644 --- a/en/version-[version].paths.ts +++ b/en/version-[version].paths.ts @@ -1,6 +1,6 @@ export default { async paths() { - const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_CN')).json() + const resp = await (await fetch('https://api.acepanel.net/versions?locale=en')).json() if (!resp.message || resp.message !== 'success') return [] return resp.data.slice(0, 10).map((item: any) => { diff --git a/zh_CN/version-[version].paths.ts b/zh_CN/version-[version].paths.ts index c2d0186..a61be8b 100644 --- a/zh_CN/version-[version].paths.ts +++ b/zh_CN/version-[version].paths.ts @@ -1,6 +1,6 @@ export default { async paths() { - const resp = await (await fetch('https://panel.haozi.net/api/versions')).json() + const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_CN')).json() if (!resp.message || resp.message !== 'success') return [] return resp.data.slice(0, 10).map((item: any) => { diff --git a/zh_TW/version-[version].paths.ts b/zh_TW/version-[version].paths.ts index c2d0186..0085167 100644 --- a/zh_TW/version-[version].paths.ts +++ b/zh_TW/version-[version].paths.ts @@ -1,6 +1,6 @@ export default { async paths() { - const resp = await (await fetch('https://panel.haozi.net/api/versions')).json() + const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_TW')).json() if (!resp.message || resp.message !== 'success') return [] return resp.data.slice(0, 10).map((item: any) => {