perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (#2086)

This commit is contained in:
花裤衩 2019-05-20 11:04:51 +08:00 committed by Pan
parent cdf3ea06c7
commit fa23feeed4
1 changed files with 5 additions and 1 deletions

View File

@ -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()
}
},