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

fix: lint

This commit is contained in:
2026-01-25 04:48:52 +08:00
parent 1fbdc8ad1a
commit aac09a7459
6 changed files with 6 additions and 6 deletions

View File

@@ -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
})

View File

@@ -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;
});

View File

@@ -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;
});

View File

@@ -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) => {

View File

@@ -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) => {

View File

@@ -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) => {