Browse Source

fix: sidebar base64 decode (#1975)

pull/1980/head
takumi9942 4 years ago
committed by GitHub
parent
commit
bcd32d44e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. 4
      client/themes/default/components/page.vue

4
client/themes/default/components/page.vue

@ -473,10 +473,10 @@ export default {
}
},
sidebarDecoded () {
return JSON.parse(atob(this.sidebar))
return JSON.parse(Buffer.from(this.sidebar, 'base64').toString())
},
tocDecoded () {
return JSON.parse(atob(this.toc))
return JSON.parse(Buffer.from(this.toc, 'base64').toString())
}
},
created() {

Loading…
Cancel
Save