Skip to content

Commit

Permalink
perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed May 21, 2019
1 parent cdf3ea0 commit fa23fee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Breadcrumb/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export default {
}
},
watch: {
$route() {
$route(route) {
// if you go to the redirect page, do not update the breadcrumbs
if (route.path.startsWith('/redirect/')) {
return
}
this.getBreadcrumb()
}
},
Expand Down

0 comments on commit fa23fee

Please sign in to comment.