添加 vue-router 依赖并配置路由,重构登录组件,完善 HTTP 请求拦截器以支持 token 刷新机制

This commit is contained in:
zyh
2025-08-24 19:49:39 +08:00
parent 69bf5500cd
commit 17a1d4e85a
30 changed files with 2368 additions and 28 deletions

6
.env Normal file
View File

@@ -0,0 +1,6 @@
# 默认环境变量(如未提供具体 .env.* 时使用)
# 开发环境已通过 Vite 代理将 /api 转发到 http://localhost:18080
# 生产环境请根据部署地址覆盖为真实后端地址
VITE_API_BASE=/api