Skip to content

Commit

Permalink
[skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwite committed Oct 15, 2024
1 parent 85543ab commit bb21d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/web/src/store/bookStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const useBookStore = defineStore('book', {
popCataVisible: false,
contentLoading: true,
showContent: false,
config: default_config as webReadConfig,
config: default_config,
miniInterface: false,
readSettingsVisible: false,
}
Expand Down Expand Up @@ -182,7 +182,7 @@ export const useBookStore = defineStore('book', {
)
},
setConfig(config?: webReadConfig) {
this.config = Object.assign({}, this.config ?? default_config, config)
this.config = Object.assign({}, this.config, config)
},
setReadSettingsVisible(visible: boolean) {
this.readSettingsVisible = visible
Expand Down

0 comments on commit bb21d17

Please sign in to comment.