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