There was an error while loading. Please reload this page.
1 parent 61d49ec commit 17b90faCopy full SHA for 17b90fa
1 file changed
app/plugins/ErrorHandler.ts
@@ -0,0 +1,10 @@
1
+/* eslint-disable no-console */
2
+
3
+export default defineNuxtPlugin((nuxtApp) => {
4
+ if (import.meta.dev) {
5
+ return;
6
+ }
7
+ nuxtApp.vueApp.config.errorHandler = () => {
8
+ console.log('未知错误');
9
+ };
10
+});
0 commit comments