From e2e2f224c5d439e3128ea95ac2cd7847b66641f6 Mon Sep 17 00:00:00 2001 From: gerson <1405270578@qq.com> Date: 星期日, 29 九月 2024 20:27:07 +0800 Subject: [PATCH] 1rem --- 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..46eeafa 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 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