refactor: ♻️ 增加语言和布局大小枚举类型

This commit is contained in:
cshaptx4869
2024-03-15 09:09:41 +08:00
parent 274b6a3deb
commit d83f43fb0e
6 changed files with 51 additions and 12 deletions

View File

@@ -18,14 +18,13 @@
import { useAppStore, useSettingsStore } from "@/store";
import defaultSettings from "@/settings";
import { ThemeEnum } from "@/enums/ThemeEnum";
import { SizeEnum } from "@/enums/SizeEnum";
const appStore = useAppStore();
const settingsStore = useSettingsStore();
const locale = computed(() => appStore.locale);
const size = computed(
() => appStore.size as "default" | "small" | "large" | undefined
);
const size = computed(() => appStore.size as SizeEnum);
const watermarkEnabled = computed(() => settingsStore.watermarkEnabled);
// 明亮/暗黑主题水印字体颜色适配