更新团课列表页面,修复路径代理导致的错误识别

This commit is contained in:
2026-06-04 19:11:00 +08:00
parent 2a6409daa9
commit 0e8f19934e
8 changed files with 6 additions and 17 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export default defineConfig({
proxy: {
// 匹配所有 /api 开头的请求
'/api': {
target: 'http://192.168.43.89:8084', // 你的后端SpringBoot地址
target: 'http://localhost:8084', // 你的后端SpringBoot地址
changeOrigin: true, // 开启跨域伪装
// rewrite: (path) => path.replace(/^\/areyouok/, '')
// 举例:前端请求 /api/login → 代理成 http://localhost:8088/login