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.
15 lines
460 B
15 lines
460 B
import Vue from 'vue'
|
|
import {errorLog} from '@/config'
|
|
|
|
if (errorLog) {
|
|
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)
|
|
}
|
|
}
|
|
|