chore: 开发代理切换到本地后端(localhost:8081)

This commit is contained in:
2026-10-27 13:30:55 +08:00
parent d40461a69a
commit fcf0e6454f

View File

@@ -27,8 +27,8 @@ export default defineConfig({
proxy: { proxy: {
"/api": { "/api": {
// target: "http://192.168.71.2:8080/", // 家 // target: "http://192.168.71.2:8080/", // 家
target: "http://192.168.1.36:8080/", // 公司 // target: "http://192.168.1.36:8080/", // 公司
// target: "http://localhost:8080/", // 本地Docker测试 target: "http://localhost:8081/", // 本地后端(s-file, local-dev 配置)
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""), rewrite: (path) => path.replace(/^\/api/, ""),
} }