安装axios:
npm i -S axios

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

相关文章: