merchapp/java-mall-app-shop-admin/vue.config.js
2025-05-08 10:16:20 +08:00

34 lines
981 B
JavaScript

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:{
// }
// },
}
}
}