Notion-Auth

This commit is contained in:
tangly1024.com
2024-07-10 09:19:59 +08:00
parent da90c17b3a
commit ccf0c18017
11 changed files with 1247 additions and 406 deletions

View File

@@ -84,12 +84,9 @@ export const getLayoutByTheme = ({ router, theme }) => {
* @returns
*/
const getLayoutNameByPath = path => {
if (LAYOUT_MAPPINGS[path]) {
return LAYOUT_MAPPINGS[path]
} else {
// 没有特殊处理的路径返回默认layout名称
return 'LayoutSlug'
}
const layoutName = LAYOUT_MAPPINGS[path] || 'LayoutSlug'
// console.log('path-layout',path,layoutName)
return layoutName
}
/**