移除pansou在server-config中的信息

This commit is contained in:
mtvpls
2025-12-23 01:03:08 +08:00
parent afb45fccc0
commit ffa6a3aefe
3 changed files with 6 additions and 7 deletions

View File

@@ -154,7 +154,7 @@ export default function PansouSearch({
);
}
const cloudTypes = Object.keys(results.merged_by_type);
const cloudTypes = Object.keys(results.merged_by_type || {});
// 过滤显示的网盘类型
const filteredCloudTypes = selectedType === 'all'
@@ -164,7 +164,7 @@ export default function PansouSearch({
// 计算每种网盘类型的数量
const typeStats = cloudTypes.map(type => ({
type,
count: results.merged_by_type[type]?.length || 0,
count: results.merged_by_type?.[type]?.length || 0,
}));
return (
@@ -208,7 +208,7 @@ export default function PansouSearch({
{/* 按网盘类型分类显示 */}
{filteredCloudTypes.map((cloudType) => {
const links = results.merged_by_type[cloudType];
const links = results.merged_by_type?.[cloudType];
if (!links || links.length === 0) return null;
const typeName = CLOUD_TYPE_NAMES[cloudType] || cloudType;