fengling-console-web/apps/web-ele/.env.development
Sam d2d70b462e fix: 修复前端API调用和响应处理,补全i18n多语言包
1. 修复启动卡住问题
   - 创建专用 authRequestClient 连接到认证中心
   - 修复认证相关API路由错误

2. 修复API响应处理
   - 移除错误的 defaultResponseInterceptor
   - 添加自定义响应拦截器直接返回 response.data
   - 修复分页数据提取(response.items)

3. 修复类型定义
   - Tenant: contactPhone 可选,status 改为 string
   - User: 添加 phone, tenantId, tenantName, emailConfirmed
   - Role: 添加 tenantId, isSystem, userCount
   - OAuth: 修改 Id 类型为 string
   - 修正所有 DTO 的必填字段

4. 修复查询参数
   - 租户列表使用 name 而不是 keyword

5. 补全 i18n 多语言包
   - 添加 app, tenant, user, role, oauth, common 模块
   - 中文:"蜂铃管理平台"、"蜂铃控制台"
   - 英文:Fengling Management Platform、Fengling Console

6. 修复租户管理逻辑
   - 添加 editingId 跟踪编辑状态
   - 修复 handleSave 使用正确的租户ID
2026-02-08 20:18:36 +08:00

26 lines
693 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 端口号
VITE_PORT=5777
VITE_BASE=/
# 接口地址 - Fengling Console Backend
VITE_GLOB_API_URL=http://localhost:5231/api
# OIDC认证服务器地址
VITE_AUTH_SERVER_URL=http://localhost:5132
# OAuth 认证中心配置(旧的,保留兼容性)
VITE_AUTH_SERVICE_URL=http://localhost:5132
VITE_OAUTH_CLIENT_ID=fengling-console
VITE_OAUTH_REDIRECT_URI=http://localhost:5777/auth/callback
VITE_OAUTH_SCOPE=fengling_api offline_access openid profile email
# 是否开启 Nitro Mock服务true 为开启false 为关闭
VITE_NITRO_MOCK=false
# 是否打开 devtoolstrue 为打开false 为关闭
VITE_DEVTOOLS=false
# 是否注入全局loading
VITE_INJECT_APP_LOADING=true