From 81c155e7e00b83f06e6486a8d904428a44b8b275 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 23 Feb 2022 16:47:10 +0800 Subject: [PATCH] 评论页添加,修改站点默认logo --- src/components/mini/box2-class.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/mini/box2-class.vue b/src/components/mini/box2-class.vue index a26cd6d..2426d1f 100644 --- a/src/components/mini/box2-class.vue +++ b/src/components/mini/box2-class.vue @@ -35,10 +35,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(3) + if (res.data.length >= 3) + this.list2 = res.data.slice(3) }) }, data() { -- Gitblit v1.9.1