From c23efbe2832d1a9eecd4ef5d20d984661b24dd22 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Tue, 22 Feb 2022 01:21:52 +0800
Subject: [PATCH] 文章添加补充

---
 src/components/mini/box-new-article.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/components/mini/box-new-article.vue b/src/components/mini/box-new-article.vue
index 91ffc2d..ebf3225 100644
--- a/src/components/mini/box-new-article.vue
+++ b/src/components/mini/box-new-article.vue
@@ -3,7 +3,7 @@
 		<div class="recent-posts" id="recent-posts">
 			<div class="recent-post-item">
 				<div class="miniTag" v-if="isTop==1">置顶</div>
-				<div class="post_cover left_radius" v-if="id%2==0">
+				<div class="post_cover left_radius" v-if="index%2==0">
 					<router-link :to="{path:'/mdDetail',query:{id:id}}" :title="title">
 						<div class="block left_radius"></div>
 						<img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title">
@@ -53,7 +53,9 @@
 <script>
 	export default {
 		props: {
-			"id": {
+			"index": {
+				default: 0,
+			},"id": {
 				default: 0,
 			},
 			"isTop": {

--
Gitblit v1.9.1