|  | @@ -11,14 +11,14 @@ export default {
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  // 控制是否屏蔽全局console.log 日志;isDebug设为false即可屏蔽
 |  |  // 控制是否屏蔽全局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>
 |  |  </script>
 | 
											
												
													
														|  |  
 |  |  
 |