From deef42a3596beb86ff7b74653501d4e751a33984 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Thu, 26 May 2022 22:00:47 +0800
Subject: [PATCH] 月台 视频添加

---
 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 0d6a7c6..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(4)
+				if (res.data.length >= 3)
+					this.list2 = res.data.slice(3)
 			})
 		},
 		data() {

--
Gitblit v1.9.1