From 9cc6a3f29bbc06d4c9451b7899c7615c45714379 Mon Sep 17 00:00:00 2001 From: esthel Date: Thu, 30 Nov 2023 23:34:59 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20axios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ChanWoo Kim --- front/src/pages/Make/MainDeco/MakeSnowballCanvas.tsx | 1 - front/src/pages/Make/MainDeco/Steps.tsx | 2 +- front/src/router/IsLogin.tsx | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/front/src/pages/Make/MainDeco/MakeSnowballCanvas.tsx b/front/src/pages/Make/MainDeco/MakeSnowballCanvas.tsx index 7450d2f..310e6a6 100644 --- a/front/src/pages/Make/MainDeco/MakeSnowballCanvas.tsx +++ b/front/src/pages/Make/MainDeco/MakeSnowballCanvas.tsx @@ -46,7 +46,6 @@ const MainSnowballCavnas = () => { title={snowballName} color={new THREE.Color(bottomColor)} /> - {/* */} ); diff --git a/front/src/pages/Make/MainDeco/Steps.tsx b/front/src/pages/Make/MainDeco/Steps.tsx index cfbc5da..00c0e09 100644 --- a/front/src/pages/Make/MainDeco/Steps.tsx +++ b/front/src/pages/Make/MainDeco/Steps.tsx @@ -188,7 +188,7 @@ const Steps = () => { return ( <> - + {step === lastConfirm || step === doneStep ? null : ( {renderStateBoxes()} diff --git a/front/src/router/IsLogin.tsx b/front/src/router/IsLogin.tsx index 7ec7939..5bb1567 100644 --- a/front/src/router/IsLogin.tsx +++ b/front/src/router/IsLogin.tsx @@ -9,7 +9,9 @@ const IsLogin: React.FC<{ children: ReactNode }> = ({ children }) => { useEffect(() => { if (url === '') { axios - .get('/api/user') + .get('/api/user', { + withCredentials: true + }) .then(res => { if (res.status === 200) { const data = res.data;