From 59cf25e40c6ab33d7a7c6e73594cd1e358906250 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 28 十一月 2024 17:58:22 +0800 Subject: [PATCH] tab --- src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue b/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue index 46aa006..ae7dff7 100644 --- a/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue +++ b/src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue @@ -1,15 +1,13 @@ <template> - <p> - {{ data }} - </p> + <div class="markdown-it" v-html="md.render(data)"></div> </template> <script setup lang="ts"> -const props = defineProps({ - data: { - type: String, - }, -}); +import { md } from '../../libs/markdown'; +import { chatComProps } from '../common'; +const props = defineProps({ + data:String +}); </script> <style scoped lang="scss"></style> -- Gitblit v1.9.3