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