Skip to content

Commit

Permalink
fix: 显示欢迎页时的面包屑
Browse files Browse the repository at this point in the history
  • Loading branch information
Grothendieck42 committed Sep 20, 2024
1 parent 98e3985 commit 0036264
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/admin/src/components/BreadList/BreadList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default function BreadList() {
useEffect(() => {
if (!pageId) return;
const menuItem = pageMap[Number(pageId)];
if (pathname.endsWith('/welcome')) {
setMenuPath([{ title: '欢迎页' }]);
return;
}
if (!menuItem) return;
const breadList = [] as any[];
let cur = menuItem;
Expand Down

0 comments on commit 0036264

Please sign in to comment.