1. Installation
npm install --save axios
Screenshot of installation completion (if there is an error, see the
previous article) 2. Configure in main.js
3. Use
created () {
this.$axios.get("http://localhost:8080/static/js/data.json").then((response) => {
this.$nextTick(() => {
console.log(response)
})
})
},