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