mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): fix use admin decrypt page error
This commit is contained in:
parent
336205627e
commit
a63c094df9
@ -126,7 +126,7 @@ export function setupEncrypt(): void {
|
||||
if (!hasPageEncrypt.value)
|
||||
return true
|
||||
|
||||
const hash = splitHash(storage.value.p.__GLOBAL__ || '')
|
||||
const hash = splitHash(storage.value.g || '')
|
||||
if (hash && encrypt.value.admins.includes(hash))
|
||||
return true
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user