mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-02 11:39:19 +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
|
// Global error handling
|
||||||
import { useNotifyStore } from '@/stores/notify'
|
import { useNotifyStore } from '@/stores/notify'
|
||||||
|
if (process.env.NODE_ENV === 'development') {
|
||||||
app.config.errorHandler = (err, instance, info) => {
|
app.config.errorHandler = (err) => {
|
||||||
useNotifyStore().error(err)
|
useNotifyStore().error(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// App mounting
|
// App mounting
|
||||||
|
Loading…
Reference in New Issue
Block a user