From 041ed20cc34e35fe751ca02825e4405933cafaac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E9=BE=99?= Date: Fri, 29 Aug 2025 05:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/layout.tsx | 7 +++++++ components/pages/home-page2.tsx | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index 35607f6..4f3600b 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -60,6 +60,13 @@ export default function RootLayout({ colorBgMask: 'rgba(0, 0, 0, 0.6)', borderRadius: 16, }, + components: { + Message: { + colorBgElevated: '#1f1f1f', // 自定义消息背景色 + colorText: '#ffffff', // 自定义文字颜色 + borderRadius: 8, // 自定义圆角 + }, + }, }} > diff --git a/components/pages/home-page2.tsx b/components/pages/home-page2.tsx index 7a60f52..abbc84f 100644 --- a/components/pages/home-page2.tsx +++ b/components/pages/home-page2.tsx @@ -235,7 +235,13 @@ function HomeModule1() {

router.push("/create")} + onClick={() => { + if(localStorage.getItem('token')){ + router.push("/create") + }else{ + router.push("/login") + } + }} > Early Access