Skip to content

Commit

Permalink
fix: 用户输入也被渲染的问题 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Feb 24, 2023
1 parent abbdcf9 commit de87388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/chat/components/Message/Text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const text = computed(() => {
</template>
<template v-else>
<div class="leading-relaxed break-all">
<div :class="[{ 'markdown-body': !inversion }]" v-html="text" />
<div v-if="!inversion" class="markdown-body" v-html="text" />
<div v-else v-text="text" />
</div>
</template>
</div>
Expand Down

0 comments on commit de87388

Please sign in to comment.