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