You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
460 B
16 lines
460 B
|
6 years ago
|
import Vue from 'vue'
|
||
|
6 years ago
|
import {errorLog} from '@/config'
|
||
|
6 years ago
|
|
||
|
6 years ago
|
if (errorLog) {
|
||
|
6 years ago
|
Vue.config.errorHandler = function (err, vm, info, a) {
|
||
|
|
//忽略image-viewer错误
|
||
|
|
if (err.message === `Cannot read property 'complete' of undefined`) return
|
||
|
|
/*store.commit('errorLog/ADD_ERROR_LOG', {
|
||
|
|
err,
|
||
|
|
info,
|
||
|
|
url: window.location.href
|
||
|
|
})*/
|
||
|
|
console.error('这是vue捕捉到的异常', err, info)
|
||
|
|
}
|
||
|
|
}
|