yaminncco / vue-sidebar-menu

A Vue.js Sidebar Menu Component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto open with same route has unexpected behavior

Enoooch opened this issue · comments

commented

Same route name with different query string, mismatched when click item or reload page.

[
  {
    href: { name: "route_name", query: { type: 1 } }
  },
  {
    href: { name: "route_name", query: { type: 2 } }
  }
]

Not sure if isSameRouteLocationQueries is needed.

commented

Use route params instead, and set exact: true in SidebarItem.