id.vue 391 B

12345678910111213141516171819202122232425
  1. <template>
  2. <section class="cert-id">{{detail}}</section>
  3. </template>
  4. <script>
  5. import http from '@/plugins/http'
  6. export default {
  7. async asyncData(ctx) {
  8. let res = await http.post(`${http.host.dev}/api/cert/getCertDetail`, { cert_no: ctx.query.no })
  9. return {
  10. detail: res.data
  11. }
  12. },
  13. data() {
  14. return {}
  15. },
  16. mounted() {
  17. }
  18. }
  19. </script>
  20. <style scoped>
  21. </style>