Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -6,7 +6,8 @@ |
6 | 6 | </template> |
7 | 7 | <template #responseContent="{ record }"> |
8 | 8 | <div v-if="!record.request?.oneway"> |
9 | - <a-button type="link" class="ml-2" @click="handleRecordResponseContent(record)"> | |
9 | + <a-button v-if="record?.response === null" type="text" class="ml-2"> 无 </a-button> | |
10 | + <a-button v-else type="link" class="ml-2" @click="handleRecordResponseContent(record)"> | |
10 | 11 | 查看 |
11 | 12 | </a-button> |
12 | 13 | </div> |
... | ... | @@ -55,7 +56,6 @@ |
55 | 56 | commonModalInfo('命令下发内容', jsonParams?.params ? jsonParams?.params : jsonParams); |
56 | 57 | }; |
57 | 58 | const handleRecordResponseContent = (record) => { |
58 | - if (!record?.response) return; | |
59 | 59 | const jsonParams = record?.response; |
60 | 60 | commonModalInfo('响应结果', jsonParams); |
61 | 61 | }; | ... | ... |