From 58a027296a927d86c17106fc6ebda66133b95ffe Mon Sep 17 00:00:00 2001 From: xuxin <15279969124@163.com> Date: Tue, 21 Jul 2026 11:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E7=A7=81=E5=8D=8F=E8=AE=AE=E5=8D=95?= =?UTF-8?q?=E7=8B=AC=E5=8A=A0=E4=B8=AA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/PrivacyPolicy.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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;