mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-26 22:29:56 +00:00
16 lines
262 B
TypeScript
16 lines
262 B
TypeScript
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;
|
|
};
|