code refactor

This commit is contained in:
MaysWind
2025-01-14 21:20:40 +08:00
parent 8ce871e9bb
commit 7d31812055
2 changed files with 3 additions and 2 deletions
@@ -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,
@@ -107,7 +107,7 @@ const clearingData = ref<boolean>(false);
const showExportDataSheet = ref<boolean>(false);
const showInputPasswordSheetForClearData = ref<boolean>(false);
const exportFileName = computed(() => getExportFileName(exportFileType.value));
const exportFileName = computed<string>(() => getExportFileName(exportFileType.value));
function reloadUserDataStatistics(): void {
loading.value = true;