1. 28 Dec, 2025 1 commit
    • IanShaw027's avatar
      fix(frontend): 修复所有页面的UTC时区日期问题并优化初始化 · a5d6035c
      IanShaw027 authored
      **问题**:
      - 使用 toISOString() 格式化日期导致UTC时区问题
      - 在UTC+8时区凌晨时,日期会显示为前一天
      - 日期范围初始化在 onMounted 中导致重复渲染和请求
      
      **修复**:
      - 统一使用本地时区格式化日期
      - 在变量声明时就初始化日期范围,避免延迟初始化
      - 移除 initializeDateRange() 函数,直接在声明时设置正确值
      - 添加 formatLocalDate() 辅助函数统一日期格式化逻辑
      
      **影响范围**:
      - 用户仪表盘 (DashboardView)
      - 管理员仪表盘 (admin/DashboardView)
      - 用户使用记录 (UsageView)
      - 管理员使用记录 (admin/UsageView)
      
      **效果**:
      - 日期范围正确包含当天数据
      - 避免页面加载时的重复请求
      - 改善用户体验,减少不必要的重新渲染
      a5d6035c
  2. 26 Dec, 2025 1 commit
  3. 24 Dec, 2025 1 commit
  4. 20 Dec, 2025 1 commit
  5. 19 Dec, 2025 1 commit
  6. 18 Dec, 2025 3 commits
    • shaw's avatar
      fix: 修复前端多个 bug · 14517146
      shaw authored
      1. 版本号闪烁问题
         - 将版本信息缓存到 Pinia store,避免每次路由切换都重新请求
         - 添加加载占位符,版本为空时显示骨架屏
      
      2. 管理员登录跳转问题
         - 管理员登录后现在正确跳转到 /admin/dashboard
         - 普通用户仍跳转到 /dashboard
      
      3. Dashboard 页面空白报错
         - 修复 API 返回 null 时访问 .length 导致的 TypeError
         - 为 computed 属性添加可选链操作符保护
         - 为数据赋值添加空数组默认值
      14517146
    • shaw's avatar
      fix: frontend build error · 3d05e503
      shaw authored
      3d05e503
    • shaw's avatar
      First commit · 642842c2
      shaw authored
      642842c2