Skip to content

Commit

Permalink
fix: unuse debug code and format
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowballXueQiu committed Aug 22, 2024
1 parent 33c68ca commit e3c0933
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/(root)/backstage/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>
<Watermark
text={`${decodeURI(userName)} ${userId}`}
text={`${userName} ${userId}`}
fontSize={20}
gap={5}
>
Expand Down

0 comments on commit e3c0933

Please sign in to comment.