wujingjing
2024-11-06 768a63bdae68f9440d4b7f5768c3ea7f9308f2ab
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>