Skip to content

Commit

Permalink
Refactor navigation menu: update token menu item to "API Key 管理" with…
Browse files Browse the repository at this point in the history
… improved role handling
  • Loading branch information
239573049 committed Nov 30, 2024
1 parent ea03637 commit 0a9472a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lobe/src/components/@nav/_layout/Desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ const Nav = memo(() => {
navigate("/model-manager");
},
role: "admin",
},
{
icon: <KeyRound />,
enable: true,
label: "令牌",
key: SidebarTabKey.Token,
onClick: () => {
navigate("/token");
},
role: "user,admin",
}
]
},
{
icon: <KeyRound />,
enable: true,
label: "API Key 管理",
key: SidebarTabKey.Token,
onClick: () => {
navigate("/token");
},
role: "user,admin",
},
{
key: SidebarTabKey.Business,
label: "运营服务",
Expand Down

0 comments on commit 0a9472a

Please sign in to comment.