From 8b6f4f779a971b13b3f2b22ccff9ef162e8aea45 Mon Sep 17 00:00:00 2001 From: Love98 <77888749+love98ooo@users.noreply.github.com> Date: Sat, 28 Sep 2024 15:11:02 +0800 Subject: [PATCH] feat: add dashboard to selected menu key (#81) --- web/src/App.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/App.js b/web/src/App.js index 30c0b1e..054c222 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -77,6 +77,8 @@ class App extends Component { }); if (uri === "/") { this.setState({selectedMenuKey: "/"}); + } else if (uri.includes("/dashboard")) { + this.setState({selectedMenuKey: "/dashboard"}); } else if (uri.includes("/sites")) { this.setState({selectedMenuKey: "/sites"}); } else if (uri.includes("/certs")) {