mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 23:16:54 +00:00
reading resources
This commit is contained in:
@@ -18,7 +18,7 @@ import Loading from '@/components/Loading'
|
||||
* @returns
|
||||
*/
|
||||
const Slug = memorize(props => {
|
||||
const { theme, changeLoadingState } = useGlobal()
|
||||
const { theme, setOnLoading } = useGlobal()
|
||||
const { post, siteInfo } = props
|
||||
const router = useRouter()
|
||||
|
||||
@@ -27,7 +27,7 @@ const Slug = memorize(props => {
|
||||
const LayoutSlug = dynamic(() => import(`@/themes/${theme}`).then(async (m) => { return m.LayoutSlug }), { ssr: true, loading: () => <Loading /> })
|
||||
|
||||
useEffect(() => {
|
||||
changeLoadingState(false)
|
||||
setOnLoading(false)
|
||||
if (post?.password && post?.password !== '') {
|
||||
setLock(true)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user