fix import path

This commit is contained in:
Timi
2026-04-02 16:52:48 +08:00
parent cdaf858a53
commit c266c9e95b
44 changed files with 180 additions and 194 deletions
+16
View File
@@ -0,0 +1,16 @@
import Network from "../utils/Network";
let serviceAxios: any | null = null;
function getServiceAxios(): any {
if (serviceAxios === null) {
serviceAxios = Network.axios;
}
return serviceAxios;
}
export const axios = new Proxy({} as any, {
get(_target: any, prop: string | symbol, receiver: any): any {
return Reflect.get(getServiceAxios(), prop, receiver);
}
});