From 6461f5659505768e7a90594c3aab47f90d9ee213 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Mon, 22 Aug 2022 00:37:40 +0800
Subject: [PATCH] 弹窗添加可移动

---
 src/components/mini/mdDetail.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/components/mini/mdDetail.vue b/src/components/mini/mdDetail.vue
index b85966b..5f46771 100644
--- a/src/components/mini/mdDetail.vue
+++ b/src/components/mini/mdDetail.vue
@@ -49,12 +49,10 @@
 				{{introduce}}
 				</pre>
 			</div>
-
-			<div class="markdown-body article-detail " v-else>
-				<vue-markdown :source="source" ></vue-markdown>
+			<div v-viewer.static class="markdown-body article-detail" v-else>
+				<vue-markdown :source="source"></vue-markdown>
 			</div>
 		</div>
-
 		<!-- <div class="articleInfoMiniData">
 			<div>
 				<a-icon type="calendar" class="samllPadding" />
@@ -83,7 +81,6 @@
 		</div>
 
 	</div>
-
 </template>
 
 <script>
@@ -207,7 +204,9 @@
 							.get(res.data.articleFileURL)
 							.then((res) => {
 								this.source = res.data;
-							})
+							}).catch(()=>[
+								this.$message.error("获取文件好像失败了..",3)
+							])
 					}
 
 					//获取日志资源文件

--
Gitblit v1.9.1