vite.config.js
@@ -52,7 +52,7 @@ proxy: { "^/api/": { // target: "http://47.117.124.20:2002/", target: "http://8.140.54.245:5000/", target: "http://101.201.155.10:4011/", rewrite: (path) => path.replace(/^\/api\//, ""), changeOrigin: true, //通过浏览器查看像是"未生效",实际发送给后端的是更改过的Host(与target的host相同) },