快乐的昕的电脑
2025-10-14 72510d5dd634d7c8344c60c27e47dabbc7f7dbb5
优化分页逻辑
已修改1个文件
4 ■■■ 文件已修改
components/mold.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);