proxyTable: {
'/api': {
target: 'http://localhost:8080',
pathRewrite: {
'^/api': '/static/mock'
}
}
},
methods: {
getHomeInfo() {
axios.get("/api/index.json").then(this.getHomeInfoSucc); //
},
getHomeInfoSucc(res) {
console.log(res);
}
},