修改配置文件

dev_xd
lj7788@126.com 2025-06-30 11:03:18 +08:00
parent 4285508faf
commit f7996664c0
1 changed files with 1 additions and 2 deletions

View File

@ -39,8 +39,7 @@ export default defineConfig(({ mode, command }) => {
},
// https://cn.vitejs.dev/config/#server-proxy
"/dev-api": {
//target: "http://localhost:8080",
target: "http://62.234.3.186/prod-api/",
target: "http://localhost:8080",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, ""),
},