Create a global Vue 3 error handler

This commit is contained in:
Maciej Pędzich 2023-05-26 12:21:33 +02:00
parent 84156909ab
commit d0207363bf

View File

@ -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');