chore: improve error handling in dev build
This commit is contained in:
parent
24701a17f5
commit
1eaca64e2a
1 changed files with 3 additions and 5 deletions
|
@ -93,12 +93,10 @@ app.mixin({
|
|||
})
|
||||
|
||||
app.config.errorHandler = (err, vm, info) => {
|
||||
// if (import.meta.env.PROD) {
|
||||
// error(err)
|
||||
// } else {
|
||||
// console.error(err, vm, info)
|
||||
if (import.meta.env.DEV) {
|
||||
console.error(err, vm, info)
|
||||
}
|
||||
error(err)
|
||||
// }
|
||||
}
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
|
|
Loading…
Reference in a new issue