diff --git a/platform/frontend/logs.html b/platform/frontend/logs.html index dffeab8..2885dc0 100644 --- a/platform/frontend/logs.html +++ b/platform/frontend/logs.html @@ -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'); diff --git a/platform/frontend/navigation-component.js b/platform/frontend/navigation-component.js index bebc5f5..14abdd6 100644 --- a/platform/frontend/navigation-component.js +++ b/platform/frontend/navigation-component.js @@ -35,6 +35,18 @@ .navigation-wrapper .mobile-nav { display: flex !important; } } @media (min-width: 769px) { .navigation-wrapper .mobile-nav { display: none !important; } } + /* 主内容区域避开固定侧边栏 */ + body > #app > .navigation-wrapper + .main-content, + body > #app > .main-content { + margin-left: 180px !important; + } + @media (max-width: 768px) { + body > #app > .navigation-wrapper + .main-content, + body > #app > .main-content { + margin-left: 0 !important; + padding-bottom: 60px !important; + } + } /* 侧边栏固定定位时不调整主内容,让 main-content 自然位于文档流中,仅需确保 padding-top 避开 navbar */ body > #app > .main-content { padding-top: 0; } `; diff --git a/platform/frontend/topics.html b/platform/frontend/topics.html index 79096dc..154be74 100644 --- a/platform/frontend/topics.html +++ b/platform/frontend/topics.html @@ -602,7 +602,7 @@ const TopicsApp = { .catch(() => {}); }, handleLogout() { localStorage.removeItem('authToken'); window.location.href = '/'; }, - redirectToPage(page) { window.location.href = page.startsWith('/') ? page : '/' + page; }, + redirectToPage(page) { window.location.href = page; }, getStatusLabel(status) { const statusMap = { 'pending': '待处理',