import axios from 'axios' Vue.prototype.$http = axios
其他地方使用的话 如同使用 vue-resource 一样
this.$http.get(URL).then(response => { // success callback }, response => { // error callback })