From 72510d5dd634d7c8344c60c27e47dabbc7f7dbb5 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期二, 14 十月 2025 16:26:00 +0800
Subject: [PATCH] 优化分页逻辑
---
components/mold.vue | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/components/mold.vue b/components/mold.vue
index 38e917b..9d7b735 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -398,9 +398,7 @@
this.toolRecords = mapped;
// 淇敼 fetchTools 鏂规硶涓� total 鐨勮祴鍊奸�昏緫
- const totalFromRes = Number(
- res.data?.total ?? res.data?.totalCount ?? res.totalCount ?? mapped.length
- );
+ const totalFromRes = Number(res.data?.total ?? res.total ?? res.data?.totalCount ?? res.totalCount ?? mapped.length);
this.total = Number.isFinite(totalFromRes) ? totalFromRes : mapped.length;
} catch (error) {
console.error('鑾峰彇琛ㄥ崟鏁版嵁閿欒:', error);
--
Gitblit v1.9.3