ArvinQi 6 anos atrás
pai
commit
2ac7f36529
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      pages/cert/type/_id.vue

+ 3 - 3
pages/cert/type/_id.vue

@@ -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 },