From d7a296b8d917abf820f0034e4b94fad302f72889 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 15 七月 2024 16:34:11 +0800
Subject: [PATCH] 嵌入页面

---
 src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue b/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue
index 46aa006..e5c9988 100644
--- a/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue
+++ b/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue
@@ -1,15 +1,14 @@
 <template>
-    <p>
-        {{ data }}
-    </p>
+	<div v-html="md.render(data)"></div>
 </template>
 
 <script setup lang="ts">
-const props = defineProps({
-    data: {
-        type: String,
-    },
-});
+import { md } from '../../libs/markdown';
 
+const props = defineProps({
+	data: {
+		type: String,
+	},
+});
 </script>
 <style scoped lang="scss"></style>

--
Gitblit v1.9.3