inleft
2024-01-10 7319260f31c9a593418ff17b1ca42e0822c3c4eb
src/components/mini/box2-class.vue
@@ -1,13 +1,14 @@
<template>
   <div class="blog-container  ">
      <span class="blog-pigeonhole">
         <router-link :to="{path:'/articleList'}">
         <!-- <router-link :to="{path:'/articleList'}">
            分类
         </router-link>
         </router-link> -->
         分类
      </span>
      <div class="blog-scroll ">
         <div class="blog-log-list">
            <div class="blog-log-item" v-for="item in list1">
            <div class="blog-log-item" v-for="(item,index) in list1">
               <router-link :to="{path:'/articleList',query:{typeId:item.id}}">
                  <span>{{item.typeName}}</span>
               </router-link>
@@ -35,10 +36,11 @@
   } from '../../api/blogArticleType.js'
   export default {
      beforeMount() {
         this.$message.info('loading',0.3);
         //this.$message.info('loading', 0.3);
         queryBlogArticleType({}).then((res) => {
            this.list1 = res.data.slice(0, 3)
            this.list2 = res.data.slice(4)
            if (res.data.length >= 3)
               this.list2 = res.data.slice(3)
         })
      },
      data() {
@@ -62,7 +64,7 @@
   /*日志部分*/
   .blog-log-list {
      line-height: 1.6;
      padding-left: 3%;
      // padding-left: 3%;
      padding-right: 3%;
      flex-wrap: wrap;
@@ -100,3 +102,8 @@
      }
   }
</style>
<style lang="less" scoped>
   a:hover::after {
      left: -50%;
   }
</style>