减少props传参

This commit is contained in:
tangly1024.com
2024-11-13 17:03:01 +08:00
parent c6adaa1859
commit 0f9fd58e01

View File

@@ -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'),