fix(navigation): 统一 redirectToPage 方法;修复内容区域宽度
- 各页面 redirectToPage 统一为直接跳转 page 参数 - 组件样式增加 main-content margin-left 避免内容被侧边栏遮挡 - 确保固定侧边栏与主内容布局正确
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user