Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40431fd

Browse files
authored
perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (PanJiaChen#2086)
1 parent 1e598e9 commit 40431fd

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
@@ -19,7 +19,11 @@ export default {
1919
}
2020
},
2121
watch: {
22-
$route() {
22+
$route(route) {
23+
// if you go to the redirect page, do not update the breadcrumbs
24+
if (route.path.startsWith('/redirect/')) {
25+
return
26+
}
2327
this.getBreadcrumb()
2428
}
2529
},

0 commit comments

Comments
 (0)