|
|
@@ -1,3 +1,4 @@
|
|
|
+
|
|
|
<template>
|
|
|
<proginn-page>
|
|
|
<section class="apply">
|
|
|
@@ -33,7 +34,7 @@
|
|
|
v-if="detail.end_date && detail.is_cert_validate && detail.cert_no"
|
|
|
>
|
|
|
有效期至{{detail.end_date}}
|
|
|
- <nuxt-link :to="`/cert/detail?no=${detail.cert_no}`">查看证书</nuxt-link>
|
|
|
+ <nuxt-link :to="`/cert/no/${detail.cert_no}`">查看证书</nuxt-link>
|
|
|
</span>
|
|
|
</section>
|
|
|
</section>
|
|
|
@@ -54,10 +55,10 @@
|
|
|
import http from '@/plugins/http'
|
|
|
|
|
|
export default {
|
|
|
- async asyncData({ query, req }) {
|
|
|
+ async asyncData({ params, req }) {
|
|
|
let headers = req && req.headers
|
|
|
- let type = query.type
|
|
|
- , { data } = await http.post(`/api/cert/getDetail`, { id: type }, { config: { headers }, neverLogout: true })
|
|
|
+ let id = params.id
|
|
|
+ let { data } = await http.post(`/api/cert/getDetail`, { id }, { config: { headers }, neverLogout: true })
|
|
|
return {
|
|
|
detail: data,
|
|
|
}
|