fix(plugins): 插件中心 - 修复协议分类筛选重复展示

Refs #428
This commit is contained in:
ddCat
2026-09-07 22:35:45 +08:00
parent 487b1b4b29
commit 5206e7f20f
3 changed files with 19 additions and 2 deletions

View File

@@ -159,8 +159,8 @@ export default function PluginsPage() {
() => [
...protocolSectionMeta.map((section) => ({ ...section, plugins: filteredPlugins.filter((plugin) => pluginMatchesCategory(plugin.manifest, section.key)) })),
{ key: "other", label: "应用插件", description: "画布、素材与工作流扩展", icon: PlugZap, plugins: filteredPlugins.filter((plugin) => pluginMatchesCategory(plugin.manifest, "other")) },
],
[filteredPlugins],
].filter((section) => categoryFilter === "all" || section.key === categoryFilter),
[categoryFilter, filteredPlugins],
);
const selectCategory = (key: string) => {