From 6024454d57d68ca96f0e72e1866188a2f6f6f3df Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Thu, 21 Nov 2024 14:51:30 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(tos):=20Display=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/app/(main)/tos/page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/user/app/(main)/tos/page.tsx b/apps/user/app/(main)/tos/page.tsx index ad42f55..5b10368 100644 --- a/apps/user/app/(main)/tos/page.tsx +++ b/apps/user/app/(main)/tos/page.tsx @@ -1,11 +1,11 @@ -'use client'; - +import { getTos } from '@/services/common/common'; import { Markdown } from '@repo/ui/markdown'; -export default function Page() { +export default async function Page() { + const { data } = await getTos(); return (
- 隐私协议 + {data.data?.tos_content || ''}
); }