mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-30 15:10:11 +00:00
减少props传参
This commit is contained in:
@@ -82,7 +82,7 @@ const Slug = props => {
|
|||||||
}
|
}
|
||||||
}, [router, lock])
|
}, [router, lock])
|
||||||
|
|
||||||
props = { ...props, lock, setLock, validPassword }
|
props = { ...props, lock, validPassword }
|
||||||
// 根据页面路径加载不同Layout文件
|
// 根据页面路径加载不同Layout文件
|
||||||
const Layout = getLayoutByTheme({
|
const Layout = getLayoutByTheme({
|
||||||
theme: siteConfig('THEME'),
|
theme: siteConfig('THEME'),
|
||||||
|
|||||||
Reference in New Issue
Block a user