From e3c093357cc409808525962d1e35b4cd4ea2abfa Mon Sep 17 00:00:00 2001 From: Snowball_233 Date: Fri, 23 Aug 2024 00:46:01 +0800 Subject: [PATCH] fix: unuse debug code and format --- app/(root)/backstage/layout.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/(root)/backstage/layout.tsx b/app/(root)/backstage/layout.tsx index 2394ad4..b873180 100644 --- a/app/(root)/backstage/layout.tsx +++ b/app/(root)/backstage/layout.tsx @@ -5,15 +5,13 @@ import Watermark from '@/app/(root)/backstage/components/Watermark'; import { Cookie } from '@/components/cookie'; export default function BackStageLayout({ children }: { children: React.ReactNode }) { - const userName = Cookie.getCookie('username'); - const userId = Cookie.getCookie('uid'); - - console.log(document.cookie); + const userName = decodeURI(Cookie.getCookie('username') || ''); + const userId = Cookie.getCookie('uid') || ''; return (