diff --git a/src/layout/components/Settings/components/ThemeColorPicker.vue b/src/layout/components/Settings/components/ThemeColorPicker.vue index 587c1ac5..bfa82d33 100644 --- a/src/layout/components/Settings/components/ThemeColorPicker.vue +++ b/src/layout/components/Settings/components/ThemeColorPicker.vue @@ -13,7 +13,7 @@ const props = defineProps({ const emit = defineEmits(["update:modelValue"]); -// 定义颜色预设 +// 主题颜色预设 const colorPresets = [ "#4080FF", "#ff4500", diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 2a285ab1..eb560d0c 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -63,7 +63,7 @@ declare global { /** 是否显示侧边栏Logo */ sidebarLogo: boolean; /** 导航栏布局(left|top|mix) */ - layout: string; + layout: "left" | "top" | "mix"; /** 主题颜色 */ themeColor: string; /** 主题模式(dark|light) */