feat:完善知识库管理路由权限配置
This commit is contained in:
@@ -214,8 +214,7 @@ export function Sidebar({ onToggle, collapsed, userRole, frontendJWT = '' }: Sid
|
||||
|
||||
// 🔑 如果选择了"智慧法务大模型",显示 /chat-with-llm 和 /dataset-manager 相关菜单
|
||||
if (selectedModuleName === '智慧法务大模型') {
|
||||
return item.path === '/chat-with-llm' || item.path?.startsWith('/chat-with-llm/') ||
|
||||
item.path === '/dataset-manager' || item.path?.startsWith('/dataset-manager/');
|
||||
return item.path === '/chat-with-llm' || item.path?.startsWith('/chat-with-llm/')
|
||||
}
|
||||
|
||||
// 🔑 如果选择了包含"合同"的模块
|
||||
|
||||
Reference in New Issue
Block a user