|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
async asyncData({ $axios, params, req }) {
|
|
|
let id = params.id;
|
|
|
let headers = req && req.headers;
|
|
|
- console.log(params);
|
|
|
+ console.log("---", params);
|
|
|
let res = await $axios.$post(
|
|
|
`/api/cert/getDetail`,
|
|
|
{ id },
|
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
: [];
|
|
|
const showCount = cats.data ? cats.data.count : 0;
|
|
|
const data = res.data;
|
|
|
- console.log(res, cats);
|
|
|
+ console.log("---", res, cats);
|
|
|
if (!data) {
|
|
|
return {
|
|
|
detail: {
|
|
|
@@ -145,7 +145,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
|
- if (!this.detail) {
|
|
|
+ if (!this.detail.description) {
|
|
|
let res = await $axios.$post(
|
|
|
`/api/cert/getDetail`,
|
|
|
{ id: this.$route.params.id },
|