diff --git a/src/hooks/useBackgroundPicture.ts b/src/hooks/useBackgroundPicture.ts index 21fcd743..12c805be 100644 --- a/src/hooks/useBackgroundPicture.ts +++ b/src/hooks/useBackgroundPicture.ts @@ -5,9 +5,8 @@ import { saveImage, getImage } from './useLocalforage' import { storeToRefs } from 'pinia' // 使用设置面板的 store -const settingsStore = useKUNGalgameSettingsStore() const { showKUNGalgameBackground, showKUNGalgameCustomBackground } = - storeToRefs(settingsStore) + storeToRefs(useKUNGalgameSettingsStore()) // 从后端获取背景图片数据 const fetchGetBackground = async (imageName: string): Promise => { diff --git a/src/views/bylaw/Bylaw.vue b/src/views/bylaw/Bylaw.vue index d1220240..5849072e 100644 --- a/src/views/bylaw/Bylaw.vue +++ b/src/views/bylaw/Bylaw.vue @@ -1,13 +1,12 @@