npm安装的命令
npm install vue-resource --save
安装完成后在main.js中导入
import VueResource from 'vue-resource'
Vue.use(VueResource)