当前位置 博文首页 > IT13333的博客:配置代理步骤

    IT13333的博客:配置代理步骤

    作者:[db:作者] 时间:2021-08-27 22:20

    配置代理方法

    module.exports = {
        // publicpath:"./",
        publicPath: './',
        devServer : {
            open : true ,
            contentBase : 'src' ,
            port : 8085 ,//端口号
            hot : true ,
            proxy : {
                "/api" : {
                    target :'http://192.168.1.6:8000',
                    // target :'http://103.100.208.203:9000',
                    changeOrigin : true
                } ,
                
            }
    
        } ,
    }
    
    
    
    cs