From 28d46dfc072a13859a5c0bc4901645b77022c7c3 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Sun, 20 Feb 2022 01:25:51 +0800
Subject: [PATCH] 文章主体添加密码授权逻辑

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

diff --git a/src/components/mini/box-new-article.vue b/src/components/mini/box-new-article.vue
index 1bffa4e..1355304 100644
--- a/src/components/mini/box-new-article.vue
+++ b/src/components/mini/box-new-article.vue
@@ -4,14 +4,14 @@
 			<div class="recent-post-item">
 
 				<div class="post_cover left_radius" v-if="id%2==0">
-					<router-link to="/mdDetail" :title="title">
+					<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">
 					</router-link>
 				</div>
 
 				<div class="post_cover right_radius" v-else>
-					<router-link to="/mdDetail" :title="title">
+					<router-link :to="{path:'/mdDetail',query:{id:id}}" :title="title">
 						<div class="block right_radius"></div>
 						<img class="post_bg"  :src="coverFileURL" :onerror="img404" :alt="title">
 						<!-- <img class="post_bg" src="https://unpkg.zhimg.com/ahzo@1.0.3/blogpic/1.jpg" onerror="this.onerror=null,this.src=&quot;/img/404.jpg&quot;" :alt="title"> -->
@@ -19,7 +19,7 @@
 				</div>
 
 				<div class="recent-post-info">
-					<router-link to="/mdDetail" class="article-title"> {{title}} </router-link>
+					<router-link :to="{path:'/mdDetail',query:{id:id}}" class="article-title"> {{title}} </router-link>
 					<!-- <a class="article-title" href="/mdDetail" :title="title"> {{title}}</a> -->
 					<div class="article-meta-wrap" style="display: flex;">
 						<span class="post-meta-date">
@@ -31,7 +31,7 @@
 						<span class="article-meta__separator" style="margin: 0px 3px ;"> | </span>
 						<span class="article-meta">
 							<a-icon type="book" />
-							<router-link to="/mdDetail" class="article-meta__categories"> {{articleTypeName}}
+							<router-link :to="{path:'/mdDetail',query:{id:id}}" class="article-meta__categories"> {{articleTypeName}}
 							</router-link>
 							<!-- <a class="article-meta__categories" href="#"> {{tag}}</a> -->
 						</span>

--
Gitblit v1.9.1