From 7c90e9f824fc32156e10e4ec3a5fae5ec326e8c5 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Mon, 23 Oct 2023 00:15:54 +0800 Subject: [PATCH] feat: bylaw translation --- src/hooks/useBackgroundPicture.ts | 3 +- src/views/bylaw/Bylaw.vue | 240 +++++++++++++++++------ src/views/kungalgame/KUNGalgame.vue | 30 ++- src/views/update-log/components/Next.vue | 34 ++-- 4 files changed, 216 insertions(+), 91 deletions(-) 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 @@