wujingjing
2024-07-23 5c8a59c4ed5c5f24f93fa10ada21f3501fea220f
src/components/chat/chatComponents/normalTextCom/NormalTextCom.vue
@@ -1,15 +1,11 @@
<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(chatComProps);
</script>
<style scoped lang="scss"></style>