From bb21d17edc52defb2e897006da7f20154f5eb728 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Tue, 15 Oct 2024 21:27:16 +0800 Subject: [PATCH] [skip ci] --- modules/web/src/store/bookStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web/src/store/bookStore.ts b/modules/web/src/store/bookStore.ts index fb21c3a97b9d..9297f7d68d6a 100644 --- a/modules/web/src/store/bookStore.ts +++ b/modules/web/src/store/bookStore.ts @@ -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, } @@ -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