1.インストール
npm install --save axios
インストール完了のスクリーンショット(エラーがある場合は、
前の記事を参照してください)2.main.jsで構成します
3.使用する
created () {
this.$axios.get("http://localhost:8080/static/js/data.json").then((response) => {
this.$nextTick(() => {
console.log(response)
})
})
},