[VUE] Composition API - axios
Composition API에서 axios를 사용하는 기본적인 방법을 알아보겠습니다. 📌 ref, onMounted를 활용한 axios.get jsonplaceholder REST API axios.get Loading... Error : {{ error }} {{ data }} ✅ 설명onMounted()에서 fetchData()를 호출하여 API 데이터를 가져옴ref()를 활용해 data, loading, error 상태를 관리axios.get(url)을 통해 비동기 요청을 실행try-catch-finally를 사용하여 오류 처리 및 로딩 상태 관리✅ 결과axios 성공 여부에 따른 responMessage 호출 📌 ref 를 활용한 axios.post jsonpl..
2025.03.30