chore(projects): merge branch main into example

This commit is contained in:
Soybean
2024-06-13 23:30:33 +08:00
15 changed files with 459 additions and 362 deletions

View File

@@ -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);