mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-30 23:16:52 +00:00
Notion-Auth
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user