Skip to content

Commit fa23fee

Browse files
committed
perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (#2086)
1 parent cdf3ea0 commit fa23fee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Breadcrumb/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ export default {
2121
}
2222
},
2323
watch: {
24-
$route() {
24+
$route(route) {
25+
// if you go to the redirect page, do not update the breadcrumbs
26+
if (route.path.startsWith('/redirect/')) {
27+
return
28+
}
2529
this.getBreadcrumb()
2630
}
2731
},

0 commit comments

Comments
 (0)