fix(webreader): settings are not persisted

closes #489
This commit is contained in:
Gauthier Roebroeck 2021-03-31 09:59:39 +08:00
parent 4198e2d968
commit d202dc239a

View File

@ -397,11 +397,11 @@ export default Vue.extend({
async mounted() {
this.readingDirection = this.$store.state.persistedState.webreader.readingDirection
this.animations = this.$store.state.persistedState.webreader.animations
this.pageLayout = this.$store.state.persistedState.webreader.pageLayout
this.pageLayout = this.$store.state.persistedState.webreader.paged.pageLayout
this.swipe = this.$store.state.persistedState.webreader.swipe
this.scale = this.$store.state.persistedState.webreader.fit
this.continuousScale = this.$store.state.persistedState.webreader.continuousReaderFit
this.sidePadding = this.$store.state.persistedState.webreader.continuousReaderPadding
this.scale = this.$store.state.persistedState.webreader.paged.scale
this.continuousScale = this.$store.state.persistedState.webreader.continuous.scale
this.sidePadding = this.$store.state.persistedState.webreader.continuous.padding
this.backgroundColor = this.$store.state.persistedState.webreader.background
this.setup(this.bookId, Number(this.$route.query.page))