修复问题

This commit is contained in:
海龙 2025-08-29 05:51:11 +08:00
parent e2d16d0f10
commit 041ed20cc3
2 changed files with 14 additions and 1 deletions

View File

@ -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, // 自定义圆角
},
},
}}
>
<CallbackModalContext.Provider value={{ setShowCallbackModal }}>

View File

@ -235,7 +235,13 @@ function HomeModule1() {
</p>
<div
className="w-[11.5rem] h-[3.75rem] mt-[4rem] text-base flex justify-center items-center font-normal border border-white rounded-full bg-white/30 cursor-pointer"
onClick={() => router.push("/create")}
onClick={() => {
if(localStorage.getItem('token')){
router.push("/create")
}else{
router.push("/login")
}
}}
>
Early Access
<CircleArrowRight className="ml-[1rem]" />