综述: 优化内容区域显示逻辑和页面结构

- 隐藏内容区域标题显示,统一使用iframe展示页面内容
- 移除菜单点击时动态更新标题的逻辑
- 简化内容区域的展示方式,提升用户体验
This commit is contained in:
linbin 2025-09-06 08:57:24 +08:00
parent bf92b87117
commit a25d392e7c
1 changed files with 2 additions and 5 deletions

View File

@ -112,6 +112,7 @@
}
.content-header {
display: none;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
@ -354,9 +355,6 @@
// 为当前点击的菜单项添加活动状态
this.classList.add('active');
// 更新内容区域标题
document.querySelector('.content-header h1').textContent = text || '大妈系统平台';
// 这里可以根据需要更新内容区域的内容
updateContent(text);
}
@ -367,8 +365,7 @@
function updateContent(title) {
const contentBody = document.querySelector('.content-body');
// 恢复内容区域的标题显示
document.querySelector('.content-header').style.display = 'block';
// 移除内容区域标题的显示逻辑直接在iframe中显示页面
// 如果是权限编辑或市场经营者创建显示iframe
if (title === '权限编辑') {