Skip to content

Commit 3d92572

Browse files
izoyotimi137137
andauthored
fix(Breadcrumb): 修复面包屑状态异常 (#840)
* fix: 切换菜单面包屑没更新 * chore: style lint --------- Co-authored-by: 悠静萝莉 <i@mikuhl.cn>
1 parent 11120a5 commit 3d92572

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/layouts/components/Breadcrumb.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ import { useLocale } from '@/locales/useLocale';
1414
import { RouteMeta } from '@/types/interface';
1515
1616
const { locale } = useLocale();
17+
const route = useRoute();
1718
1819
const crumbs = computed(() => {
19-
const route = useRoute();
20-
2120
const pathArray = route.path.split('/');
2221
pathArray.shift();
2322

0 commit comments

Comments
 (0)