1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-11-13 22:11:42 +08:00

refactor(load-status): 重构数据加载状态管理,统一加载更多逻辑

1.  重构useDataLoadingStatus钩子,新增完整加载状态类型
2.  统一首页和动态页面的加载更多状态管理逻辑
3.  移除冗余的加载状态本地变量,复用钩子内置状态
4.  调整分类页面默认分页大小从3改为10
5.  修复加载状态的默认值处理逻辑
This commit is contained in:
小莫唐尼
2026-09-11 23:01:13 +08:00
parent 9c06766f81
commit 424ab538dc
5 changed files with 131 additions and 82 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
/* ---------------- 状态 ---------------- */
const { loadingStatus, loadMoreStatus, updateLoadingStatus, updateLoadMoreStatus, resetLoadingStatus, resetLoadMoreStatus } = useDataLoadingStatus()
const queryParams = ref({
size: 3,
size: 10,
page: 1,
fieldSelector: ['spec.hideFromList=false'],
})