inleft
2022-02-21 4b854c29227ef08ea178a3bba527a40ca2f84674
src/components/mini/box3-archive.vue
@@ -16,7 +16,7 @@
                  <router-link to="/tagTime?type=3">
                     <span>{{item.month}}月</span>
                  </router-link>
                     <span>{{item.count}}篇</span>
                  <span>{{item.count}}篇</span>
               </div>
            </div>
@@ -27,53 +27,62 @@
</template>
<script>
   import {
      archive
   } from '../../api/blogStatistics.js'
   export default {
      beforeMount() {
         archive({}).then((res) => {
            this.myData = res.data;
         })
      },
      data() {
         return {
            "myData": [{
                  "year": "2022",
                  "list": [{
                        "month": "12",
                        "count": 10
                     },
                     {
                        "month": "10",
                        "count": 11
                     },
                     {
                        "month": "9",
                        "count": 9
                     }
                  ]
               },
               {
                  "year": "2021",
                  "list": [{
                        "month": "12",
                        "count": 8
                     },
                     {
                        "month": "10",
                        "count": 7
                     },
                     {
                        "month": "7",
                        "count": 4
                     },
                     {
                        "month": "6",
                        "count": 3
                     },
                     {
                        "month": "5",
                        "count": 2
                     },
                     {
                        "month": "4",
                        "count": 1
                     }
                  ]
               }
            "myData": [
               // {
               //    "year": "2022",
               //    "list": [{
               //          "month": "12",
               //          "count": 10
               //       },
               //       {
               //          "month": "10",
               //          "count": 11
               //       },
               //       {
               //          "month": "9",
               //          "count": 9
               //       }
               //    ]
               // },
               // {
               //    "year": "2021",
               //    "list": [{
               //          "month": "12",
               //          "count": 8
               //       },
               //       {
               //          "month": "10",
               //          "count": 7
               //       },
               //       {
               //          "month": "7",
               //          "count": 4
               //       },
               //       {
               //          "month": "6",
               //          "count": 3
               //       },
               //       {
               //          "month": "5",
               //          "count": 2
               //       },
               //       {
               //          "month": "4",
               //          "count": 1
               //       }
               //    ]
               // }
            ],
         }
      }