Files
claude-relay-service/web/admin-spa/.env.example
shaw 414856f152 feat: 全新的Vue3管理后台(admin-spa)和路由重构
🎨 新增功能:
- 使用Vue3 + Vite构建的全新管理后台界面
- 支持Tab切换的API统计页面(统计查询/使用教程)
- 优雅的胶囊式Tab切换设计
- 同步了PR #106的会话窗口管理功能
- 完整的响应式设计和骨架屏加载状态

🔧 路由调整:
- 新版管理后台部署在 /admin-next/ 路径
- 将根路径 / 重定向到 /admin-next/api-stats
- 将 /web 页面路由重定向到新版,保留 /web/auth/* 认证路由
- 将 /apiStats 页面路由重定向到新版,保留API端点

🗑️ 清理工作:
- 删除旧版 web/admin/ 静态文件
- 删除旧版 web/apiStats/ 静态文件
- 清理相关的文件服务代码

🐛 修复问题:
- 修复重定向循环问题
- 修复环境变量配置
- 修复路由404错误
- 优化构建配置

🚀 生成方式:使用 Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-29 12:40:51 +08:00

29 lines
946 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.

# ========== 基础配置 ==========
# 应用基础路径
# 用于配置路由和资源的基础路径
# 开发环境默认:/admin/
# 生产环境默认:/admin-next/
# 如果使用默认值,可以注释掉此行
#VITE_APP_BASE_URL=/admin/
# 应用标题
# 显示在浏览器标签页和页面头部
VITE_APP_TITLE=Claude Relay Service - 管理后台
# ========== 开发环境配置 ==========
# API 代理目标地址
# 开发环境下,所有 /webapi 前缀的请求会被代理到这个地址
# 默认值http://localhost:3000
VITE_API_TARGET=http://localhost:3000
# HTTP 代理配置(可选)
# 如果需要通过代理访问后端服务器,请取消注释并配置
# 格式http://proxy-host:port
#VITE_HTTP_PROXY=http://127.0.0.1:7890
# ========== 使用说明 ==========
# 1. 复制此文件为 .env.local 进行本地配置
# 2. .env.local 文件不会被提交到版本控制
# 3. 详细说明请查看 ENV_CONFIG.md