Commit dbba52c43b6ed09c8c2bc79046574bd79de82e07

Authored by vking
1 parent aade5904

pay

Showing 1 changed file with 2 additions and 3 deletions
... ... @@ -23,10 +23,9 @@ Component({
top:(Math.random()*70+10)
},
ready: function() {
if(!console.hasRewrite){
if(!getApp().consoleHasRewrite && wx.getLogManager){
const logger =wx.getLogManager()
let consoleLog=console.log
console.hasRewrite=true
getApp().consoleHasRewrite=true
console.log.prototype=function(){
console.log(...arguments)
logger.debug(...arguments)
... ...