fix: sidebar highlights tickets-create when on create form

This commit is contained in:
2026-07-17 00:10:34 +08:00
parent 1762b016cd
commit 2961ca67d1

View File

@@ -76,7 +76,8 @@ const App = {
if (!Auth.logged()) { location.hash = '#/login'; return; } if (!Auth.logged()) { location.hash = '#/login'; return; }
this.showLayout(); this.showLayout();
this.renderSidebar(page); const sidebarPage = (page === 'tickets' && param.startsWith('create')) ? 'tickets-create' : page;
this.renderSidebar(sidebarPage);
switch (page) { switch (page) {
case 'dashboard': this.renderMain('控制台', Dashboard, param); break; case 'dashboard': this.renderMain('控制台', Dashboard, param); break;