mirror of
https://github.com/Paris-est-Ludique/ForceOrange.git
synced 2025-09-11 14:36:29 +02:00
🎨 Improving error system, fixing profile store, and more stuff
This commit is contained in:
10
modules/app/plugins/error-handler.ts
Normal file
10
modules/app/plugins/error-handler.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
nuxtApp.vueApp.config.errorHandler = (error, instance, info) => {
|
||||
// handle error, e.g. report to a service
|
||||
}
|
||||
|
||||
// Also possible
|
||||
nuxtApp.hook('vue:error', (error, instance, info) => {
|
||||
// handle error, e.g. report to a service
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user