Skip to content

Commit

Permalink
Merge pull request #77 from 100-hours-a-week/feature/lucy
Browse files Browse the repository at this point in the history
Fix : 요청 url 누락된 부분 수정
  • Loading branch information
lucy726j authored Aug 24, 2024
2 parents 7368e58 + 5c6504f commit d3f614f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Pages/stockDetail/stockDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d3f614f

Please sign in to comment.