feat: 添加整体风格自适应操作系统浅色、深色、自动主题功能,让平台充满现代气息 (#869)

* feat: 添加整体风格自适应操作系统浅色、深色、自动主题功能,让平台更加现代化

* chore: update
This commit is contained in:
xiaoming
2024-01-14 23:21:43 +08:00
committed by GitHub
parent 61c6ec230a
commit dd78313622
18 changed files with 100 additions and 30 deletions

View File

@@ -73,7 +73,8 @@ function setTheme(layoutModel: string) {
darkMode: $storage.layout?.darkMode,
sidebarStatus: $storage.layout?.sidebarStatus,
epThemeColor: $storage.layout?.epThemeColor,
themeColor: $storage.layout?.themeColor
themeColor: $storage.layout?.themeColor,
overallStyle: $storage.layout?.overallStyle
};
}
@@ -119,7 +120,7 @@ onMounted(() => {
});
onBeforeMount(() => {
useDataThemeChange().dataThemeChange();
useDataThemeChange().dataThemeChange($storage.layout?.overallStyle);
});
const layoutHeader = defineComponent({