Skip to content

Commit

Permalink
fix: fix mode is route cannot make
Browse files Browse the repository at this point in the history
  • Loading branch information
wuls committed Nov 15, 2020
1 parent 199a313 commit 0d3e5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default {
})
}
const routeToItem = (item, onError) => {
const route = item.route || item.index
const route = item.ctx.route || item.ctx.index
try {
instance.ctx.$router.push(route, () => {}, onError)
} catch (e) {
Expand Down

0 comments on commit 0d3e5b1

Please sign in to comment.