Remove v-if prop anti-pattern, clean up, add reader mode
This commit is contained in:
@@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user