Vue js에서 axios 메서드를 가져오기 위한 올바른 구문 나는 생성된 후크에서 직접 전화를 걸지 않고 주 vue 인스턴스를 가져와 내 공리 호출과 분리하려고 한다. data.js라는 별도의 파일에 이것을 가지고 있다. import axios from 'axios' export default{ myData() { return axios.get(`http://localhost:8080/data.json`) .then(response => { // JSON responses are automatically parsed. return response.data; }) .catch(e => { return this.myErrors.push(e) }); }, 그리고 나의 예를 들어 다음과 같은 것이 있다. im..