mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 04:07:23 +08:00
📝 [docs]: 新增在线展示
This commit is contained in:
parent
94cab8b743
commit
359683dbae
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user