Commit 5b5ce959720a54de6e53e32abdd8718f3f4ee5c0
1 parent
723faa69
perf: 优化设备详情命令下发记录查看命令内容获取request.body.params
Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -85,7 +85,8 @@ |
85 | 85 | }; |
86 | 86 | const handleRecordContent = (record) => { |
87 | 87 | if (!record?.request?.body) return; |
88 | - const jsonParams = record?.request?.body; | |
88 | + if (Object.prototype.toString.call(record?.request?.body) !== '[object Object]') return; | |
89 | + const jsonParams = record?.request?.body?.params; | |
89 | 90 | commonModalInfo('命令下发内容', jsonParams); |
90 | 91 | }; |
91 | 92 | const handleRecordResponseContent = (record) => { | ... | ... |