From 0dd41bd8cee430d3a948b89c664cb511c400993c Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Fri, 12 Aug 2022 19:11:46 +0800 Subject: [PATCH] 新增链接添加按钮,优化Dplayer播放 --- src/components/mini/box2-class.vue | 67 ++------------------------------- 1 files changed, 5 insertions(+), 62 deletions(-) diff --git a/src/components/mini/box2-class.vue b/src/components/mini/box2-class.vue index 6c32839..00e7437 100644 --- a/src/components/mini/box2-class.vue +++ b/src/components/mini/box2-class.vue @@ -12,7 +12,7 @@ <span>{{item.typeName}}</span> </router-link> - <span>{{item.count==null?'--':item.count}}</span> + <span>{{item.count==null?'--':item.count+'篇'}}</span> </div> </div> <div class="blog-log-list"> @@ -20,7 +20,7 @@ <router-link :to="{path:'/articleList',query:{typeId:item.id}}"> <span>{{item.typeName}}</span> </router-link> - <span>{{item.count==null?'--':item.count}}</span> + <span>{{item.count==null?'--':item.count+'篇'}}</span> </div> </div> @@ -35,74 +35,17 @@ } from '../../api/blogArticleType.js' export default { beforeMount() { + //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() { return { list1: [], list2: [], - // list1: [{ - // name: "日志", - // count: 10 - // }, { - // name: "分类", - // count: 12 - // }, { - // name: "标签", - // count: 14 - // }], - // list2: [{ - // name: "Tag", - // count: 133 - // }, { - // name: "专题", - // count: 10 - // }, { - // name: "偏好", - // count: 12 - // }, { - // name: "星标", - // count: 14 - // },{ - // name: "Tag", - // count: 133 - // }, { - // name: "专题", - // count: 10 - // }, { - // name: "偏好", - // count: 12 - // }, { - // name: "星标", - // count: 14 - // },{ - // name: "Tag", - // count: 133 - // }, { - // name: "专题", - // count: 10 - // }, { - // name: "偏好", - // count: 12 - // }, { - // name: "星标", - // count: 14 - // },{ - // name: "Tag", - // count: 133 - // }, { - // name: "专题", - // count: 10 - // }, { - // name: "偏好", - // count: 12 - // }, { - // name: "星标", - // count: 14 - // }] } } } -- Gitblit v1.9.1