vue——通过axios调用elasticsearch的数据
1、在文件夹config /index.js里配置代理路径
//http://localhost:9200 是安装的elasticsearch 访问地址
proxyTable: {
'/scotch.io-tutorial':{
target: 'http://localhost:9200',
changeOrigin: true
}
},
2、配置API请求
...
原创
2019-05-10 11:22:20 ·
3361 阅读 ·
2 评论