摘要: 一、配置 devServer:{ contentBase:'./', proxy:{ // 当你请求是以/api开头的时候,代理会访问到http://localhost:3000 // 例如: // /api/users 则访问到 http://localhost:3000/api/users // 阅读全文