Files
luo d9d07422a9
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m44s
fix: update some files
2026-08-18 17:36:41 +08:00

1015 B

Change: 通知抽屉改为分页浏览

Why

顶部通知抽屉目前只展示最近 10 条通知,用户无法通过页码查看更早的通知。通知列表应使用明确的分页操作,避免依赖下滑加载更多的交互。

What Changes

  • 顶部通知抽屉增加页码分页控件,默认每页展示 10 条。
  • 切换页码时调用通知列表接口并替换当前列表,不追加滚动加载。
  • 切换通知分类时重置到第 1 页,并保持现有分类统计、已读和跳转行为。
  • 保留 /api/admin/notificationspagepage_size 分页参数和后端返回的 total

Impact

  • Affected specs:
    • notification-center
  • Affected code:
    • src/components/core/layouts/art-notification/index.vue
    • src/components/core/layouts/art-notification/style.scss
    • src/store/modules/notification.ts
  • Out of scope:
    • 不改变通知接口、通知分类统计和已读接口。
    • 不接入下滑加载、无限滚动或新的实时推送机制。