feat: implement gas and delivery admin systems

This commit is contained in:
david
2026-07-30 14:16:58 +08:00
parent 1093385f95
commit f5ecc0d973
252 changed files with 49385 additions and 363 deletions

View File

@@ -0,0 +1,19 @@
import axios from 'axios';
import type { App, ComponentPublicInstance } from 'vue';
export default function setupErrorReport(app: App, baseUrl: string) {
if (!baseUrl) {
return;
}
app.config.errorHandler = (
err: unknown,
instance: ComponentPublicInstance | null,
info: string,
) => {
axios.post(`${baseUrl}/report-error`, {
err,
instance,
info,
});
};
}