优化首页的ui交互,解决打包生产环境下写入sessionStorage错误,优化权限路由的跳转问题
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user