You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
706 B

1 year ago
  1. <template>
  2. <div v-if="null !== props.log">
  3. <div class="border rounded p-3 whitespace-pre bg-white mb-3">
  4. 执行动作 : {{ props.log.action }}
  5. </div>
  6. <div class="border rounded p-3 whitespace-pre bg-white mb-3">
  7. <div>参数列表</div>
  8. <div v-for="(item,index) of props.log.params" :key="index" class="mr-2">
  9. {{ JSON.stringify(item, null, 2) }}
  10. </div>
  11. </div>
  12. <div class="border rounded p-3 whitespace-pre bg-white mb-3">
  13. <div>响应内容</div>
  14. <div>{{ JSON.stringify(props.log.response, null, 2) }}</div>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup>
  19. /** @var {Object} */
  20. const props = defineProps({
  21. log: Object,
  22. });
  23. </script>