ReferenceError: $axios is not defined

问题代码:


解决方法:

main.js加上Vue.prototype.$axios = axios

this.axios.改为this.$axios.get调用,修改后不再报错


你可能感兴趣的:(ReferenceError: $axios is not defined)