1
0
forked from bot/app

📝 [docs]: 新增在线展示

This commit is contained in:
远野千束 2024-09-01 21:21:04 +08:00
parent 94cab8b743
commit 359683dbae

View File

@ -75,7 +75,7 @@ export const statsApi: StatsApi = {
},
getPluginNum: async () => {
try {
const res = await fetch('./plugins.json');
const res = await fetch('/plugins.json');
const data = await res.json();
return data.length;
} catch (e) {
@ -84,7 +84,7 @@ export const statsApi: StatsApi = {
},
getResourceNum: async () => {
try {
const res = await fetch('./resources.json');
const res = await fetch('/resources.json');
const data = await res.json();
return data.length;
} catch (e) {