feat: 调整代码样式

This commit is contained in:
ChenZhaoYu 2023-02-10 08:09:07 +08:00
parent 85ac61caa7
commit e8cb651db3
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ defineProps<Props>()
{{ date }}
</span>
<div class="p-2 mt-2 rounded-md" :class="[user ? 'bg-[#d2f9d1]' : 'bg-[#f4f6f8]']">
<span class="leading-relaxed" :class="[{ 'text-red-500': error }]" v-html="message" />
<span class="leading-relaxed whitespace-pre" :class="[{ 'text-red-500': error }]">
{{ message }}
</span>
</div>
</div>
</div>