vite.config.js
@@ -17,7 +17,7 @@ const proxyConfig = () => { const personProxy = { "/prod-api": { target: "http://192.168.50.106:8080",//"http://192.168.50.13:8080", // 开发环境的后端地址 target: "http://192.168.50.160:8080",//"http://192.168.50.13:8080", // 开发环境的后端地址 changeOrigin: true, rewrite: (path) => path.replace(/^\/prod-api/, ""), },