diff --git a/src/main.ts b/src/main.ts index 62278a3..06ff3b2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,4 +17,10 @@ const app = createApp(App); registerPlugins(app); +app.config.errorHandler = (error) => { + if (import.meta.env.DEV) { + console.error(error); + } +}; + app.mount('#app');