module.exports = { devServer: { port:8080, proxy: { '/mobile': { // 匹配所有以 /mobile 开头的请求路径 target: 'https://mall.gpxscs.cn/mobile', // 目标服务器 changeOrigin: true, // 是否改变请求源 pathRewrite: { "^/mobile": "" } }, '/api/admin': { // 匹配所有以 /api 开头的请求路径 target: 'https://mall.gpxscs.cn/api/admin', // 目标服务器 changeOrigin: true, // 是否改变请求源 pathRewrite: { "^/api/admin": "" } }, '/api/mobile': { // 匹配所有以 /api/mobile 开头的请求路径 target: 'https://mall.gpxscs.cn/api/mobile', // 目标服务器 changeOrigin: true, // 是否改变请求源 pathRewrite: { "^/api/mobile": "" } }, // '/signed':{ // target:"https://mall.gpxscs.cn", // changeOrigin:true, // pathRewrite:{ // } // }, } } }