vue配置反向代理

安装axios:
npm i -S axios

配置文件:
module.exports = {
    devServer: {
        proxy: {
            '/v': {
                target: 'http://127.0.0.1',
                changeOrigin: true
            }
        }
    }
}

posted @ 2020-06-03 14:13  大雨大雨大雨  阅读(885)  评论(0编辑  收藏  举报