Certificate displaying and monitoring

This commit is contained in:
yoan
2024-11-22 10:59:57 +08:00
parent 09e4b24445
commit 86761bd3a0
19 changed files with 498 additions and 381 deletions

15
ui/src/api/statistics.ts Normal file
View File

@@ -0,0 +1,15 @@
import { getPb } from "@/repository/api";
export const get = async () => {
const pb = getPb();
const resp = await pb.send("/api/statistics/get", {
method: "GET",
});
if (resp.code != 0) {
throw new Error(resp.msg);
}
return resp.data;
};