This commit is contained in:
tangly1024
2022-11-30 22:44:25 +08:00
parent 77bbdceb03
commit 725f15c5fb

View File

@@ -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 !== '') {