Browse Source

fix the active link problem

remotes/Mikhail5555/master
LouisLam 3 years ago
parent
commit
a856780066
  1. 7
      src/router.js

7
src/router.js

@ -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…
Cancel
Save