mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
code refactor
This commit is contained in:
@@ -211,6 +211,7 @@ import { useAppSettingPageBase } from '@/views/base/settings/AppSettingsPageBase
|
||||
|
||||
import { useSettingsStore } from '@/stores/setting.ts';
|
||||
|
||||
import type { LocalizedSwitchOption } from '@/core/base.ts';
|
||||
import { ThemeType } from '@/core/theme.ts';
|
||||
import { getSystemTheme } from '@/lib/ui/common.ts';
|
||||
|
||||
@@ -236,7 +237,7 @@ const {
|
||||
|
||||
const settingsStore = useSettingsStore();
|
||||
|
||||
const enableDisableOptions = computed(() => getAllEnableDisableOptions());
|
||||
const enableDisableOptions = computed<LocalizedSwitchOption[]>(() => getAllEnableDisableOptions());
|
||||
|
||||
const currentTheme = computed<string>({
|
||||
get: () => settingsStore.appSettings.theme,
|
||||
|
||||
Reference in New Issue
Block a user