delete redundant code

This commit is contained in:
Pan 2017-07-02 16:29:30 +08:00 committed by 花裤衩
parent 54884f50c1
commit e3bc9c7e78

View file

@ -83,11 +83,6 @@ router.afterEach(() => {
NProgress.done(); // 结束Progress
});
// window.onunhandledrejection = e => {
// console.log('unhandled', e.reason, e.promise);
// e.preventDefault()
// };
// 生产环境错误日志
if (process.env === 'production') {
Vue.config.errorHandler = function(err, vm) {
@ -100,18 +95,6 @@ if (process.env === 'production') {
};
}
// window.onerror = function (msg, url, lineNo, columnNo, error) {
// console.log('window')
// };
//
// console.error = (function (origin) {
// return function (errorlog) {
// // handler();//基于业务的日志记录及数据报错
// console.log('console'+errorlog)
// origin.call(console, errorlog);
// }
// })(console.error);
new Vue({
el: '#app',
router,