refactor: ♻️ 使用枚举类型替代字符串类型,增强类型安全

更新相关函数和变量的类型定义
This commit is contained in:
zimo493
2025-04-03 15:00:16 +08:00
parent 8dcdecfde4
commit 6026e9cac0
3 changed files with 14 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ declare global {
/** 主题颜色 */
themeColor: string;
/** 主题模式(dark|light) */
theme: string;
theme: import("@/enums/settings/theme.enum").ThemeMode;
/** 布局大小(default |large |small) */
size: string;
/** 语言( zh-cn| en) */