mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +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 { useSettingsStore } from '@/stores/setting.ts';
|
||||||
|
|
||||||
|
import type { LocalizedSwitchOption } from '@/core/base.ts';
|
||||||
import { ThemeType } from '@/core/theme.ts';
|
import { ThemeType } from '@/core/theme.ts';
|
||||||
import { getSystemTheme } from '@/lib/ui/common.ts';
|
import { getSystemTheme } from '@/lib/ui/common.ts';
|
||||||
|
|
||||||
@@ -236,7 +237,7 @@ const {
|
|||||||
|
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
|
|
||||||
const enableDisableOptions = computed(() => getAllEnableDisableOptions());
|
const enableDisableOptions = computed<LocalizedSwitchOption[]>(() => getAllEnableDisableOptions());
|
||||||
|
|
||||||
const currentTheme = computed<string>({
|
const currentTheme = computed<string>({
|
||||||
get: () => settingsStore.appSettings.theme,
|
get: () => settingsStore.appSettings.theme,
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ const clearingData = ref<boolean>(false);
|
|||||||
const showExportDataSheet = ref<boolean>(false);
|
const showExportDataSheet = ref<boolean>(false);
|
||||||
const showInputPasswordSheetForClearData = ref<boolean>(false);
|
const showInputPasswordSheetForClearData = ref<boolean>(false);
|
||||||
|
|
||||||
const exportFileName = computed(() => getExportFileName(exportFileType.value));
|
const exportFileName = computed<string>(() => getExportFileName(exportFileType.value));
|
||||||
|
|
||||||
function reloadUserDataStatistics(): void {
|
function reloadUserDataStatistics(): void {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user