内网映射,内网穿透

添加配置:【 disableHostCheck:true】
devServer: {
        disableHostCheck:true,
        proxy: {
            '/api': {
                target: 'http://192.168.1.5:9595',
                changeOrigin: true,
                // pathRewrite: { '^/api': '' },
            },
        }
    }
工具:钉钉,uTools
posted @ 2021-03-12 14:49  慕城蓝就  阅读(76)  评论(0编辑  收藏  举报