| components/mold.vue | ●●●●● 补丁 | 查看 | 原始文档 | 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);