vue-resource
vue-resource copied to clipboard
vue-resource could work with proxyTable configration?
I have config the proxyTable in the config/index.js created by vue-cli
proxyTable: { '/api': { target: 'http://ip:8080', changeOrigin: true, pathRewrite: { '^/api': '/api', },
},`
in my components ,when i use this.$http.get('/api/myapi'),the request is still send to localhost.
👍 same here, couldn't find the reason, any help much appreciated.
I replaced the 'localhost' in the target to IP, and all clear.