商品弹窗代码修改

This commit is contained in:
2025-12-25 09:29:09 +08:00
parent cf562b28b0
commit f75f90d34f
4 changed files with 27 additions and 17 deletions

View File

@@ -33,11 +33,11 @@ module.exports = defineConfig({
],
server: {
proxy: {
'/api': {
'/testApi': {
// target: 'https://cashier.sxczgkj.com', // 目标服务器地址
target: 'http://192.168.1.42/', // 目标服务器地址
changeOrigin: true, // 是否更改请求源
rewrite: path => path.replace(/^\/api/, '')
rewrite: path => path.replace(/^\/testApi/, '')
},
'/prodApi': {
target: 'https://cashier.sxczgkj.com', // 目标服务器地址