From ff9f4d05ade2bd19c71eebc81e15bd96258fb872 Mon Sep 17 00:00:00 2001 From: zhangjf Date: Mon, 23 Feb 2026 13:43:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E9=A6=96=E6=AC=A1=E5=8A=A0=E8=BD=BDpageNum?= =?UTF-8?q?=E4=BB=8E1=E5=BC=80=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **问题:** - van-list组件的@load事件在挂载时自动触发 - 导致onLoad先执行pageNum++,首次请求时pageNum变成2 **修复:** - 在onMounted中主动加载第一页数据 - onLoad只处理加载更多逻辑 - 统一所有列表页:customer, project, expense, requirement, receivable --- fund-mobile/src/views/customer/List.vue | 10 +++++++++- fund-mobile/src/views/expense/List.vue | 10 +++++++++- fund-mobile/src/views/project/List.vue | 10 +++++++++- fund-mobile/src/views/receivable/List.vue | 12 ++++++------ fund-mobile/src/views/requirement/List.vue | 10 +++++++++- 5 files changed, 42 insertions(+), 10 deletions(-) diff --git a/fund-mobile/src/views/customer/List.vue b/fund-mobile/src/views/customer/List.vue index f00785c..e073555 100644 --- a/fund-mobile/src/views/customer/List.vue +++ b/fund-mobile/src/views/customer/List.vue @@ -41,7 +41,7 @@