修改省局的端口的判断为51707

This commit is contained in:
2025-11-07 11:12:43 +08:00
parent 855d74b979
commit 6c09285ac9
4 changed files with 17 additions and 16 deletions
+4 -4
View File
@@ -214,14 +214,14 @@ export function Sidebar({ onToggle, collapsed, userRole, frontendJWT = '', selec
// const visibleMenuIds = APP_MENU_MAP[currentApp as keyof typeof APP_MENU_MAP]
// console.log('当前应用模式:', currentApp, '可见菜单ID:', visibleMenuIds);
// 检查是否通过51708端口访问
// 检查是否通过51707端口访问(省局)
// const isPort51708 = typeof window !== 'undefined' && window.location.port === '51708';
const isPort51708 = typeof window !== 'undefined' && window.location.port === '5178';
const isPort51707 = typeof window !== 'undefined' && window.location.port === '51707';
// 根据当前应用模式过滤菜单项
const filteredMenuItems = menuItems.filter(item => {
// 如果是51708端口,只显示交叉评查相关菜单
if (isPort51708) {
// 如果是51707端口,只显示交叉评查相关菜单
if (isPort51707) {
// 如果当前应用是智慧法务大模型,只显示AI对话菜单
if (currentApp === 'model') {
return item.id === 'chat-with-llm' ||