mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 15:09:31 +00:00
加锁
This commit is contained in:
@@ -21,7 +21,7 @@ const Slug = props => {
|
||||
const router = Router.useRouter()
|
||||
|
||||
// 文章锁🔐
|
||||
const [lock, setLock] = React.useState(true)
|
||||
const [lock, setLock] = React.useState(post?.password && post?.password !== '')
|
||||
|
||||
React.useEffect(() => {
|
||||
if (post?.password && post?.password !== '') {
|
||||
|
||||
Reference in New Issue
Block a user