add Network.globalErrorCallback

This commit is contained in:
Timi
2025-12-03 11:53:10 +08:00
parent 53f100cb4e
commit a5b51b3492
2 changed files with 23 additions and 8 deletions
+3
View File
@@ -56,7 +56,9 @@ const install = function (app: App) {
app.use(component as unknown as { install: () => any });
});
};
const axios = Network.axios;
const setGlobalErrorCallback = Network.setGlobalErrorCallback;
export default {
install
@@ -65,6 +67,7 @@ export default {
export {
axios,
Network,
setGlobalErrorCallback,
UserAPI,
CommonAPI,