fix: 修复前端 API 路径配置
All checks were successful
continuous-integration/drone/push Build is passing

- 移除 VITE_APP_API 的 /api 前缀
- BladeX 框架的端点已包含完整路径(/blade-auth, /blade-system 等)
- 修复登录时 "No endpoint POST /api/blade-auth/oauth/token" 错误

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
n72595987@gmail.com
2025-11-29 23:55:30 +08:00
parent 890218199b
commit cbf161048c

View File

@@ -6,7 +6,8 @@ VITE_APP_ENV = 'https://2df1-223-74-180-188.ngrok-free.app '
#接口地址 #接口地址
#填写前缀 [/api] 需要用nginx进行反向代理 #填写前缀 [/api] 需要用nginx进行反向代理
#填写地址 [https://api.bladex.cn] 只需要保证接口支持跨域即可, 无需再做代理 #填写地址 [https://api.bladex.cn] 只需要保证接口支持跨域即可, 无需再做代理
VITE_APP_API=/api # 改为空字符串,因为 BladeX 的端点路径已包含完整路径(/blade-auth, /blade-system, /api/martial
VITE_APP_API=
#页面基础路径 #页面基础路径
VITE_APP_BASE=/ VITE_APP_BASE=/