Browse Source

日志查询bug尝试修复

hl 1 year ago
parent
commit
d1c22448a2
1 changed files with 1 additions and 1 deletions
  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"} );
     });