MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getPagedData

Function getPagedData

web/src/pages/Setting/Ratio/ModelSettingsVisualEditor.js:74–78  ·  view source on GitHub ↗
(data, currentPage, pageSize)

Source from the content-addressed store, hash-verified

72
73 // 首先声明分页相关的工具函数
74 const getPagedData = (data, currentPage, pageSize) => {
75 const start = (currentPage - 1) * pageSize;
76 const end = start + pageSize;
77 return data.slice(start, end);
78 };
79
80 // 在 return 语句之前,先处理过滤和分页逻辑
81 const filteredModels = models.filter((model) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected