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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user