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 (