perf: View the internal message and convert the content into markdown

This commit is contained in:
feng
2024-08-27 16:48:14 +08:00
committed by Bryan
parent d89bd15b6d
commit 5b894c9667

View File

@@ -70,7 +70,7 @@
<span class="msg-detail-time">{{ formatDate(currentMsg.date_created) }}</span>
</div>
<div class="msg-detail-txt">
<span v-sanitize="currentMsg.content.message" />
<MarkDown :value="currentMsg.content.message" />
</div>
</div>
</Dialog>
@@ -80,10 +80,14 @@
<script>
import { toSafeLocalDateStr } from '@/utils/time'
import Dialog from '@/components/Dialog'
import MarkDown from '@/components/Widgets/MarkDown'
export default {
name: 'SiteMessages',
components: { Dialog },
components: {
Dialog,
MarkDown
},
data() {
return {
show: false,