Commit 9e674033baad8bebbc9053814ad54ed73980346a
1 parent
e26aac7e
fix: command issus remove additionalInfo field
Showing
2 changed files
with
9 additions
and
4 deletions
| ... | ... | @@ -102,9 +102,9 @@ |
| 102 | 102 | jsonData.value.params = field.commandText; |
| 103 | 103 | } |
| 104 | 104 | jsonData.value.persistent = true; |
| 105 | - jsonData.value.additionalInfo = { | |
| 106 | - cmdType: 'API', | |
| 107 | - }; | |
| 105 | + // jsonData.value.additionalInfo = { | |
| 106 | + // cmdType: 'API', | |
| 107 | + // }; | |
| 108 | 108 | jsonData.value.method = 'methodThingskit'; |
| 109 | 109 | commandIssuanceApi(field.commandType, props.deviceDetail.tbDeviceId, jsonData.value) |
| 110 | 110 | .then((res) => { | ... | ... |
| ... | ... | @@ -44,7 +44,12 @@ |
| 44 | 44 | <div ref="jsoneditorRef" style="height: 100%; width: 100%"></div> |
| 45 | 45 | <a-button style="margin: -5px 0" type="text" @click="handlePremitter">格式化</a-button> |
| 46 | 46 | <Tooltip |
| 47 | - title='{"method":"setDOValue","params":{"devID":"492S211218028819","data":{"DO1":1}}}' | |
| 47 | + :title=" | |
| 48 | + JSON.stringify({ | |
| 49 | + method: 'setDOValue', | |
| 50 | + params: { devID: '492S211218028819', data: { DO1: 1 } }, | |
| 51 | + }) | |
| 52 | + " | |
| 48 | 53 | class="ml-2" |
| 49 | 54 | > |
| 50 | 55 | <QuestionCircleOutlined style="font-size: 1rem" /> | ... | ... |