Disable global error handling at Vue level

This commit is contained in:
Bubka 2023-11-27 13:20:38 +01:00
parent 0d15dd62fa
commit bb263d1438

View File

@ -77,12 +77,12 @@ app
.component('Kicker', Kicker)
// Global error handling
import { useNotifyStore } from '@/stores/notify'
if (process.env.NODE_ENV != 'development') {
app.config.errorHandler = (err) => {
useNotifyStore().error(err)
}
}
// import { useNotifyStore } from '@/stores/notify'
// if (process.env.NODE_ENV != 'development') {
// app.config.errorHandler = (err) => {
// useNotifyStore().error(err)
// }
// }
// Helpers
// app.config.globalProperties.$helpers = helpers