diff --git a/src/views/PrivacyPolicy.vue b/src/views/PrivacyPolicy.vue index 04004c0..8ba6a89 100644 --- a/src/views/PrivacyPolicy.vue +++ b/src/views/PrivacyPolicy.vue @@ -17,7 +17,7 @@ import { fetchAgreement } from '@/api/common' import markdownit from 'markdown-it' /** markdown-it 实例 */ -const md = markdownit({ html: false, breaks: true, linkify: true }) +const md = markdownit({ html: true, breaks: true, linkify: true }) /** 渲染后的 HTML 内容 */ const contentHtml = ref('') @@ -105,6 +105,23 @@ onMounted(async () => { margin-bottom: 0.06rem; } + :deep(table) { + width: 100%; + border-collapse: collapse; + margin-bottom: 0.16rem; + } + + :deep(th), :deep(td) { + border: 1px solid $border-color; + padding: 0.08rem 0.12rem; + text-align: left; + } + + :deep(th) { + background: $bg-main; + font-weight: 600; + } + :deep(a) { color: $accent; text-decoration: underline;