diff --git a/public/js/app.js b/public/js/app.js index 0fd52d4..76489e5 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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;