From eeef9f3413151bea79690aac4abb737aff0cb6c8 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Tue, 23 Aug 2022 18:55:22 +0800 Subject: [PATCH] 图片demo --- 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..00e7437 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