Commit 1c64a123b7dbac665b3152cd2e3ef01c2b0cd6e6

Authored by vking
1 parent b7f66922

console 改为实时日志

Showing 1 changed file with 8 additions and 0 deletions
... ... @@ -16,6 +16,14 @@ Array.prototype.remove = function(val) {
this.splice(index, 1);
}
};
if (wx.getRealtimeLogManager) {
const logger = wx.getRealtimeLogManager()
let consoleLog=console.log
console.log=function () {
logger.info(...arguments);
consoleLog(...arguments)
}
}
App({
openid:"",
system:{},
... ...