mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
fix the active link problem
This commit is contained in:
parent
266b03fbf7
commit
a856780066
1 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,10 @@ const routes = [
|
|||
component: Entry,
|
||||
},
|
||||
{
|
||||
path: "/dashboard",
|
||||
// If it is "/dashboard", the active link is not working
|
||||
// If it is "", it overrides the "/" unexpectedly
|
||||
// Give a random name to solve the problem.
|
||||
path: "/empty",
|
||||
component: Layout,
|
||||
children: [
|
||||
{
|
||||
|
@ -26,7 +29,7 @@ const routes = [
|
|||
children: [
|
||||
{
|
||||
name: "DashboardHome",
|
||||
path: "",
|
||||
path: "/dashboard",
|
||||
component: DashboardHome,
|
||||
children: [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue