perf[Breadcrumb]: do not update breadcrumbs when go to redirect page

This commit is contained in:
Pan 2019-05-16 10:57:34 +08:00
parent a0b2014e85
commit decf607741
1 changed files with 5 additions and 1 deletions

View File

@ -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.includes('/redirect/')) {
return
}
this.getBreadcrumb()
}
},