From b031e703ecfb3cc6eb2e116d4d3ba1120df9f760 Mon Sep 17 00:00:00 2001 From: ysCha Date: Fri, 26 Jun 2026 14:36:34 +0900 Subject: [PATCH] =?UTF-8?q?[main]=20fix:=20fetchNoticeList=C2=B7fetchFaqLi?= =?UTF-8?q?st=20catch=20=EB=B8=94=EB=A1=9D=20=EC=8A=A4=EC=BD=94=ED=94=84?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20=E2=80=94=20param?= =?UTF-8?q?=C2=B7apiUrl=20=EC=84=A0=EC=96=B8=EC=9D=84=20try=20=EB=B0=96?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/MainContents.jsx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/main/MainContents.jsx b/src/components/main/MainContents.jsx index f20bfaf7..52117630 100644 --- a/src/components/main/MainContents.jsx +++ b/src/components/main/MainContents.jsx @@ -80,14 +80,14 @@ export default function MainContents({ setFaqOpen, setFaqModalNoticeNo }) { //공지사항 호출 const fetchNoticeList = async () => { + const param = { + schNoticeTpCd: 'QC', + schNoticeClsCd: 'NOTICE', + startRow: 1, + endRow: 1, + } + const noticeApiUrl = `api/board/list?${queryStringFormatter(param)}` try { - const param = { - schNoticeTpCd: 'QC', - schNoticeClsCd: 'NOTICE', - startRow: 1, - endRow: 1, - } - const noticeApiUrl = `api/board/list?${queryStringFormatter(param)}` await promiseGet({ url: noticeApiUrl }).then((res) => { if (res.status === 200) { setRecentNoticeList(res.data.data) @@ -111,14 +111,14 @@ export default function MainContents({ setFaqOpen, setFaqModalNoticeNo }) { //FAQ 호출 const fetchFaqList = async () => { + const param = { + schNoticeTpCd: 'QC', + schNoticeClsCd: 'FAQ', + startRow: 1, + endRow: 3, + } + const faqApiUrl = `api/board/list?${queryStringFormatter(param)}` try { - const param = { - schNoticeTpCd: 'QC', - schNoticeClsCd: 'FAQ', - startRow: 1, - endRow: 3, - } - const faqApiUrl = `api/board/list?${queryStringFormatter(param)}` await promiseGet({ url: faqApiUrl, }).then((res) => {