Skip to content

Commit

Permalink
fix: 解决老版插件仓库菜单问题
Browse files Browse the repository at this point in the history
  • Loading branch information
youngster-yj committed Jul 11, 2024
1 parent ec9a37c commit e0d4c20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
5 changes: 4 additions & 1 deletion app/renderer/src/main/src/routes/deprecatedMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ export const EnterpriseDeprecatedSecondMenu: string[] = [
"插件执行结果",
"api提取",
"空间引擎集成版本",
"网站树"
"网站树",
"插件商店",
"我的插件",
"本地插件"
]
24 changes: 0 additions & 24 deletions app/renderer/src/main/src/routes/newRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,6 @@ export const PrivateExpertRouteMenu: PrivateRouteMenuProps[] = [
page: undefined,
label: "插件",
children: routeToChildren([
YakitRoute.Plugin_Store,
YakitRoute.Plugin_Owner,
YakitRoute.Plugin_Local,
YakitRoute.Plugin_Hub,
YakitRoute.BatchExecutorPage
])
Expand Down Expand Up @@ -1211,9 +1208,6 @@ export const PrivateScanRouteMenu: PrivateRouteMenuProps[] = [
page: undefined,
label: "插件",
children: routeToChildren([
YakitRoute.Plugin_Store,
YakitRoute.Plugin_Owner,
YakitRoute.Plugin_Local,
YakitRoute.Plugin_Hub,
YakitRoute.BatchExecutorPage
])
Expand Down Expand Up @@ -1258,24 +1252,6 @@ export const PrivateSimpleRouteMenu: PrivateRouteMenuProps[] = [
page: undefined,
label: "插件",
children: [
{
page: YakitRoute.Plugin_Store,
icon: <PrivateOutlinePluginStoreIcon />,
hoverIcon: <PrivateSolidPluginStoreIcon />,
...YakitRouteToPageInfo[YakitRoute.Plugin_Store]
},
{
page: YakitRoute.Plugin_Owner,
icon: <PrivateOutlinePluginOwnerIcon />,
hoverIcon: <PrivateSolidPluginOwnerIcon />,
...YakitRouteToPageInfo[YakitRoute.Plugin_Owner]
},
{
page: YakitRoute.Plugin_Local,
icon: <PrivateOutlinePluginLocalIcon />,
hoverIcon: <PrivateSolidPluginLocalIcon />,
...YakitRouteToPageInfo[YakitRoute.Plugin_Local]
},
{
page: YakitRoute.Plugin_Hub,
icon: <PrivateOutlinePluginStoreIcon />,
Expand Down

0 comments on commit e0d4c20

Please sign in to comment.