feat: 新增驻场人员全部页面,补全SITE_MAP页面登记,修复共享页面角色跳转
- 新增驻场人员(onsite)工作台、知识库、我的共12个页面 - 修复AI助手和消息页面底部Tab导航缺少onsite角色映射的问题 - 补登SITE_MAP中24个遗漏的HTML页面条目(管理员/操作人员/员工端/应急APP) - 移除不存在的center-seat.html条目 - 包含操作人员、专业人员已有页面的暂存提交 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -255,11 +255,18 @@
|
||||
<script>
|
||||
/**
|
||||
* 根据sessionStorage中的角色标记,动态设置底部Tab的跳转路径
|
||||
* 各角色页面会写入对应的 appRole 值(expert / assistant)
|
||||
* 各角色页面会写入对应的 appRole 值(expert / assistant / professional)
|
||||
*/
|
||||
function initTabLinks() {
|
||||
var role = sessionStorage.getItem('appRole') || 'expert';
|
||||
var base = role === 'assistant' ? '../assistant' : '../expert';
|
||||
var roleBaseMap = {
|
||||
expert: '../expert',
|
||||
assistant: '../assistant',
|
||||
professional: '../professional',
|
||||
operator: '../operator',
|
||||
onsite: '../onsite'
|
||||
};
|
||||
var base = roleBaseMap[role] || '../expert';
|
||||
document.getElementById('link-workbench').href = base + '/workbench/index.html';
|
||||
document.getElementById('link-knowledge').href = base + '/knowledge/index.html';
|
||||
document.getElementById('link-profile').href = base + '/profile/index.html';
|
||||
|
||||
Reference in New Issue
Block a user