fix: 1.接入ai_suggestion.
2. 接入合同起草功能。
This commit is contained in:
@@ -207,20 +207,20 @@ export function Sidebar({ onToggle, collapsed, userRole, frontendJWT = '' }: Sid
|
||||
|
||||
// 如果是省局访问
|
||||
// if(isPort51707){
|
||||
// if (selectedModuleName === '智慧法务大模型'){
|
||||
// if (selectedModuleName === '智慧法务助手'){
|
||||
// return item.path && item.path.startsWith('/chat-with-llm')
|
||||
// }
|
||||
// return item.path && item.path.startsWith('/cross-checking')
|
||||
// }
|
||||
|
||||
// 🔑 如果选择了"智慧法务大模型",显示 /chat-with-llm 和 /dataset-manager 相关菜单
|
||||
if (selectedModuleName === '智慧法务大模型') {
|
||||
// 🔑 如果选择了"智慧法务助手",显示 /chat-with-llm 和 /dataset-manager 相关菜单
|
||||
if (selectedModuleName === '智慧法务助手') {
|
||||
return item.path === '/chat-with-llm' || item.path?.startsWith('/chat-with-llm/')
|
||||
}
|
||||
|
||||
// 🔑 如果选择了包含"合同"的模块
|
||||
if (selectedModuleName.includes('合同')) {
|
||||
// 排除智慧法务大模型专属菜单
|
||||
// 排除智慧法务助手专属菜单
|
||||
if (item.path === '/chat-with-llm' || item.path?.startsWith('/chat-with-llm/')) {
|
||||
return false;
|
||||
}
|
||||
@@ -229,7 +229,7 @@ export function Sidebar({ onToggle, collapsed, userRole, frontendJWT = '' }: Sid
|
||||
}
|
||||
|
||||
// 🔑 其他模块:排除特殊菜单
|
||||
// 排除智慧法务大模型专属菜单
|
||||
// 排除智慧法务助手专属菜单
|
||||
if (item.path === '/chat-with-llm' || item.path?.startsWith('/chat-with-llm/')) {
|
||||
return false;
|
||||
}
|
||||
@@ -321,7 +321,7 @@ export function Sidebar({ onToggle, collapsed, userRole, frontendJWT = '' }: Sid
|
||||
<div className={`flex items-center ${collapsed ? 'justify-center' : ''}`}>
|
||||
{selectedModulePicPath && (
|
||||
<img
|
||||
src={selectedModuleName === '智慧法务大模型' || selectedModuleName === '交叉评查' ? selectedModulePicPath : `${DOCUMENT_URL}${selectedModulePicPath}`}
|
||||
src={selectedModuleName === '智慧法务助手' || selectedModuleName === '交叉评查' ? selectedModulePicPath : `${DOCUMENT_URL}${selectedModulePicPath}`}
|
||||
alt={selectedModuleName}
|
||||
className={`${collapsed ? 'w-8 h-8' : 'w-6 h-6 mr-3'}`}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user