I'm working on a Vuejs App. based on Quasar Framework , in src/components/Hello.vue there i have a function to load json file
axios.get('../assets/json/ar/myfile.json')
.then(response => {
// JSON responses are automatically parsed.
console.log(response)
})
.catch(e => {
this.errors.push(e)
})
it returns error, GET http://localhost:8080/assets/json/ar/ch78.json 404 (Not Found)
so my question is how to get the file from src/assets folder ?
axios.get('../assets/json/ar/myfile.json')
this line need to be corrected
import
for static assets. – Hyperphagia