From 2961ca67d14a1ca8244510d70220959efcf6b9ef Mon Sep 17 00:00:00 2001 From: canglan Date: Fri, 17 Jul 2026 00:10:34 +0800 Subject: [PATCH] fix: sidebar highlights tickets-create when on create form --- public/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;