Explorar o código

日志查询bug尝试修复

hl hai 1 ano
pai
achega
d1c22448a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/web.js

+ 1 - 1
src/web.js

@@ -28,7 +28,7 @@ function init() {
         var s = JSON.parse("{}");
         robot.appMap.forEach((value, key) => {
             // str.set(key,JSON.stringify(value))
-            s.push(key,value)
+            s[key] = value
         })
         res.send({'code': 200, 'data': JSON.stringify(s), "message": "SUCCESS"} );
     });