Skip to content

Commit

Permalink
perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (P…
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored and marxangels committed May 20, 2019
1 parent 91743a6 commit e4ff79d
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 @@ -19,7 +19,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 e4ff79d

Please sign in to comment.