Showing
1 changed file
with
8 additions
and
0 deletions
| @@ -16,6 +16,14 @@ Array.prototype.remove = function(val) { | @@ -16,6 +16,14 @@ Array.prototype.remove = function(val) { | ||
| 16 | this.splice(index, 1); | 16 | this.splice(index, 1); |
| 17 | } | 17 | } |
| 18 | }; | 18 | }; |
| 19 | +if (wx.getRealtimeLogManager) { | ||
| 20 | + const logger = wx.getRealtimeLogManager() | ||
| 21 | + let consoleLog=console.log | ||
| 22 | + console.log=function () { | ||
| 23 | + logger.info(...arguments); | ||
| 24 | + consoleLog(...arguments) | ||
| 25 | + } | ||
| 26 | +} | ||
| 19 | App({ | 27 | App({ |
| 20 | openid:"", | 28 | openid:"", |
| 21 | system:{}, | 29 | system:{}, |
-
Please register or login to post a comment