mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 06:38:34 +01:00
Disable global error handler in dev env
This commit is contained in:
parent
ecb6ad3c65
commit
a6e749f510
7
resources/js_vue3/app.js
vendored
7
resources/js_vue3/app.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user