mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 03:38:06 +02:00
Disable global error handler in dev env
This commit is contained in:
parent
ecb6ad3c65
commit
a6e749f510
5
resources/js_vue3/app.js
vendored
5
resources/js_vue3/app.js
vendored
@ -71,10 +71,11 @@ app
|
||||
|
||||
// Global error handling
|
||||
import { useNotifyStore } from '@/stores/notify'
|
||||
|
||||
app.config.errorHandler = (err, instance, info) => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
app.config.errorHandler = (err) => {
|
||||
useNotifyStore().error(err)
|
||||
}
|
||||
}
|
||||
|
||||
// App mounting
|
||||
app.mount('#app')
|
||||
|
Loading…
x
Reference in New Issue
Block a user