fix(navigation): 统一 redirectToPage 方法;修复内容区域宽度

- 各页面 redirectToPage 统一为直接跳转 page 参数
- 组件样式增加 main-content margin-left 避免内容被侧边栏遮挡
- 确保固定侧边栏与主内容布局正确
This commit is contained in:
lt
2026-05-08 12:42:03 +08:00
parent c85320ae72
commit 2220d7b981
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -134,7 +134,7 @@
}
},
handleLogout() { localStorage.removeItem('authToken'); window.location.href = '/'; },
redirectToPage(page) { window.location.href = '/' + page; }
redirectToPage(page) { window.location.href = page; }
},
mounted() {
const token = localStorage.getItem('authToken');