Commit 4aaa47fa050c670cea233fcd2e959be6cbaefc5f

Authored by xp.Huang
2 parents 738df967 9e674033

Merge branch 'ww' into 'main'

fix: command issus remove additionalInfo field

See merge request yunteng/thingskit-front!482
... ... @@ -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" />
... ...