We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ae17e6 commit 60366c2Copy full SHA for 60366c2
src/plugins/app.ts
@@ -1,7 +1,15 @@
1
import { h } from 'vue';
2
+import type { App } from 'vue';
3
import { Button } from 'ant-design-vue';
4
import { $t } from '@/locales';
5
6
+export function setupAppErrorHandle(app: App) {
7
+ app.config.errorHandler = (err, vm, info) => {
8
+ // eslint-disable-next-line no-console
9
+ console.error(err, vm, info);
10
+ };
11
+}
12
+
13
export function setupAppVersionNotification() {
14
const canAutoUpdateApp = import.meta.env.VITE_AUTOMATICALLY_DETECT_UPDATE === 'Y';
15
0 commit comments