https://vuejs.org/v2/api/#errorHandler
errorHandler
- Type:
Function
- Default:
undefined
- Usage:
Vue.config.errorHandler = function (err, vm, info) { // handle error // `info` is a Vue-specific error info, e.g. which lifecycle hook // the error was found in. Only available in 2.2.0+ }
Assign a handler for uncaught errors during component render function and watchers. The handler gets called with the error and the Vue instance.
No comments:
Post a Comment