From d100657dacb25df91013ef25432620e6ae10d1f8 Mon Sep 17 00:00:00 2001
From: shimai <shimai@example.com>
Date: Thu, 09 Apr 2026 16:56:44 +0800
Subject: [PATCH] feat:增加白云案件类案数据
---
web-app/src/components/common/AppHeader.jsx | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/web-app/src/components/common/AppHeader.jsx b/web-app/src/components/common/AppHeader.jsx
index abd1f39..cff2c45 100644
--- a/web-app/src/components/common/AppHeader.jsx
+++ b/web-app/src/components/common/AppHeader.jsx
@@ -10,19 +10,33 @@
import './AppHeader.css';
// 默认头像
-const DEFAULT_AVATAR = 'http://gz.hugeinfo.com.cn/dyh/wx414ae04ac3f10b4e/images/pngAI_logo.png';
+const DEFAULT_AVATAR = '/app_logo.png';
/**
* 从URL参数获取调解员信息
*/
const getMediatorInfo = () => {
const params = getMergedParams();
- return {
- trueName: params.trueName || '调解员',
- unit: params.unit || '',
- roleName: params.roleName || '管理员',
+ const userInfo = {
+ userId: params.userId || '',
+ roleId: params.roleId || '',
+ auth_token: params.auth_token || '',
+ unitType: params.unitType || '',
+ trueName: params.trueName ? decodeURIComponent(params.trueName) : '调解员',
+ unit: params.unit ? decodeURIComponent(params.unit) : '',
+ unitRegion: params.unitRegion ? decodeURIComponent(params.unitRegion) : '',
+ roleName: params.roleName ? decodeURIComponent(params.roleName) : '管理员',
avatar: params.avatar || ''
};
+
+ // 存储到 localStorage
+ try {
+ localStorage.setItem('userInfo', JSON.stringify(userInfo));
+ } catch (error) {
+ console.error('Failed to save userInfo to localStorage:', error);
+ }
+
+ return userInfo;
};
/**
--
Gitblit v1.8.0