fix: sidebar highlights tickets-create when on create form
This commit is contained in:
@@ -76,7 +76,8 @@ const App = {
|
||||
if (!Auth.logged()) { location.hash = '#/login'; return; }
|
||||
|
||||
this.showLayout();
|
||||
this.renderSidebar(page);
|
||||
const sidebarPage = (page === 'tickets' && param.startsWith('create')) ? 'tickets-create' : page;
|
||||
this.renderSidebar(sidebarPage);
|
||||
|
||||
switch (page) {
|
||||
case 'dashboard': this.renderMain('控制台', Dashboard, param); break;
|
||||
|
||||
Reference in New Issue
Block a user