delete redundant code
This commit is contained in:
parent
54884f50c1
commit
e3bc9c7e78
1 changed files with 0 additions and 17 deletions
17
src/main.js
17
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,
|
||||
|
|
Loading…
Reference in a new issue