Skip to content

Commit

Permalink
fix(projects): Fix secondary directory components is empty (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
paynezhuang authored Jun 13, 2024
1 parent 9527ead commit fb48f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/manage/menu/modules/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function getLayoutAndPage(component?: string | null) {
let layout = '';
let page = '';

const [layoutOrPage, pageItem] = component?.split(FIRST_LEVEL_ROUTE_COMPONENT_SPLIT) || [];
const [layoutOrPage = '', pageItem = ''] = component?.split(FIRST_LEVEL_ROUTE_COMPONENT_SPLIT) || [];

layout = getLayout(layoutOrPage);
page = getPage(pageItem || layoutOrPage);
Expand Down

0 comments on commit fb48f41

Please sign in to comment.