更新公告展示

This commit is contained in:
2026-07-08 09:49:54 +08:00
parent e45ff5ef9a
commit 452a7bb450
5 changed files with 27 additions and 7 deletions
@@ -5,7 +5,7 @@ import { announcement, dismissAnnouncement } from '../announcement'
import Icon from './Icon.vue'
marked.setOptions({ breaks: true, gfm: true })
const html = computed(() => marked.parse(announcement.content || ''))
const html = computed(() => marked.parse(announcement.content.trim() || '暂无公告'))
</script>
<template>