epans 1 年之前
父节点
当前提交
cb6d76f523
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/App.vue

+ 8 - 8
src/App.vue

@@ -11,14 +11,14 @@ export default {
 }
 
 // 控制是否屏蔽全局console.log 日志;isDebug设为false即可屏蔽
-// const isDebug = false;  
-// console.log = (function (oldLogFunc) {
-//   return function () {
-//     if (isDebug) {
-//       oldLogFunc.apply(this, arguments);
-//     }
-//   }
-// })(console.log);
+const isDebug = false;  
+console.log = (function (oldLogFunc) {
+  return function () {
+    if (isDebug) {
+      oldLogFunc.apply(this, arguments);
+    }
+  }
+})(console.log);
  
 </script>