校赛提交

This commit is contained in:
2025-09-16 22:17:20 +08:00
parent 174d8a3bc5
commit dd3f702887
12 changed files with 175 additions and 216 deletions

View File

@@ -207,8 +207,13 @@ const Api60sPage = () => {
// 从配置文件获取60s API数据
const scanApiModules = async () => {
try {
// 直接返回配置文件中的数据
return API_60S_CATEGORIES;
// 过滤掉IsShow为false的API项目
const filteredCategories = API_60S_CATEGORIES.map(category => ({
...category,
apis: category.apis.filter(api => api.IsShow !== false)
})).filter(category => category.apis.length > 0); // 过滤掉没有可显示API的分类
return filteredCategories;
} catch (error) {
console.error('获取API模块时出错:', error);
return [];