mirror of
https://github.com/maciejpedzich/racemash.git
synced 2024-11-10 00:53:03 +01:00
Create a global Vue 3 error handler
This commit is contained in:
parent
84156909ab
commit
d0207363bf
@ -17,4 +17,10 @@ const app = createApp(App);
|
|||||||
|
|
||||||
registerPlugins(app);
|
registerPlugins(app);
|
||||||
|
|
||||||
|
app.config.errorHandler = (error) => {
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
console.error(error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
app.mount('#app');
|
app.mount('#app');
|
||||||
|
Loading…
Reference in New Issue
Block a user