优化首页的ui交互,解决打包生产环境下写入sessionStorage错误,优化权限路由的跳转问题

This commit is contained in:
2025-06-05 14:23:16 +08:00
parent d4ad36c3f2
commit 1835e40526
10 changed files with 77 additions and 55 deletions
@@ -49,8 +49,8 @@ export function ContractSearchHero({
textAlign: 'center',
padding: '60px 0',
background: 'linear-gradient(135deg, rgba(0, 104, 74, 0.05) 0%, rgba(0, 104, 74, 0.02) 100%)',
borderRadius: '16px',
marginBottom: '32px'
borderRadius: '5px',
// marginBottom: '32px'
}}>
<h1 style={{
fontSize: '32px',
+4 -4
View File
@@ -35,9 +35,9 @@ const APP_NAME_MAP: Record<string, string> = {
// 应用模块图标映射
const APP_ICON_MAP: Record<string, string> = {
'contract': 'ri-file-list-2-fill',
'record': 'ri-folder-shared-fill',
'model': 'ri-robot-2-fill'
'contract': '/images/icon_hetong.png',
'record': '/images/icon_anjuan.png',
'model': '/images/icon_assistant.png'
};
export function Sidebar({ onToggle, collapsed, userRole, selectedApp = '' }: SidebarProps) {
@@ -367,7 +367,7 @@ export function Sidebar({ onToggle, collapsed, userRole, selectedApp = '' }: Sid
</div>
) : (
<>
<i className={`${APP_ICON_MAP[currentApp] || ''} mr-2 text-xl`}></i>
<img src={APP_ICON_MAP[currentApp] || ''} alt={APP_NAME_MAP[currentApp] || ''} className="w-6 h-6 mr-2" />
<span className="font-medium">{APP_NAME_MAP[currentApp] || ''}</span>
</>
)}