From e3bc9c7e784673c49788fee382540c7ad1064120 Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 2 Jul 2017 16:29:30 +0800 Subject: [PATCH] delete redundant code --- src/main.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main.js b/src/main.js index 5f6bb26d..04fd775d 100644 --- a/src/main.js +++ b/src/main.js @@ -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,