From 5c6504ff00368d5729ae50b0dda1b64135718771 Mon Sep 17 00:00:00 2001 From: lucy726j Date: Sat, 24 Aug 2024 20:13:06 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20=EC=9A=94=EC=B2=AD=20url=20=EB=88=84?= =?UTF-8?q?=EB=9D=BD=EB=90=9C=20=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Pages/stockDetail/stockDetail.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Pages/stockDetail/stockDetail.tsx b/src/Pages/stockDetail/stockDetail.tsx index 926146b..af379f1 100644 --- a/src/Pages/stockDetail/stockDetail.tsx +++ b/src/Pages/stockDetail/stockDetail.tsx @@ -70,9 +70,12 @@ const StockDetail: React.FC = () => { // 상태저장해서 Chart 컴포넌트 Props로 넘겨줘야하는지 확인 useEffect(() => { axios - .get(`/v1/stocks/${stockCode}/chart?period=${selectedViewInt}`, { - withCredentials: true, - }) + .get( + `https://api.ustock.site/v1/stocks/${stockCode}/chart?period=${selectedViewInt}`, + { + withCredentials: true, + } + ) .then((res) => { if (res.status === 200) { console.log("차트 데이터: ", res.data);