Fix menu filtering in MenuManager for non-system users
- Update MenuManager.vue to match menu.ts filtering logic - Non-system users should only see Tool Marketplace in Development group - Hide App Marketplace, Node Marketplace, and Agent Marketplace for non-system users - Restore documentation comments in menu.ts
This commit is contained in:
parent
5416916f0f
commit
7ecc6277bc
@ -180,9 +180,9 @@ const filteredItems = computed(() => {
|
||||
return false
|
||||
}
|
||||
|
||||
// 开发分组下只允许显示:应用市场、节点市场、智能体市场、工具市场
|
||||
// 开发分组下只允许显示:工具市场(非 System User 不显示应用市场、节点市场、智能体市场)
|
||||
if (m.parentId === 'dev-group') {
|
||||
const allowedDevMenus = ['app-marketplace', 'node-marketplace', 'agent-marketplace', 'tool-marketplace']
|
||||
const allowedDevMenus = ['tool-marketplace']
|
||||
if (!allowedDevMenus.includes(m.id)) {
|
||||
return false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user