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