1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-03 23:19:49 +08:00

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

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