Disable global error handler in dev env

This commit is contained in:
Bubka 2023-09-29 13:17:26 +02:00
parent ecb6ad3c65
commit a6e749f510

View File

@ -71,9 +71,10 @@ app
// Global error handling
import { useNotifyStore } from '@/stores/notify'
app.config.errorHandler = (err, instance, info) => {
useNotifyStore().error(err)
if (process.env.NODE_ENV === 'development') {
app.config.errorHandler = (err) => {
useNotifyStore().error(err)
}
}
// App mounting