Remove v-if prop anti-pattern, clean up, add reader mode

This commit is contained in:
2024-02-18 14:36:50 +03:00
parent 3853e8fa20
commit 9386c1d158
21 changed files with 131 additions and 204 deletions
+3
View File
@@ -50,6 +50,8 @@ export const usePageStore = defineStore('page', () => {
},
])
const reader = ref(false)
function _autoFetchPages() {
while (pages.value.length) pages.value.pop()
@@ -68,5 +70,6 @@ export const usePageStore = defineStore('page', () => {
description,
keywords,
pages,
reader,
}
})