feat(projects): 添加自动跟随系统主题设置

This commit is contained in:
相思
2022-04-29 15:02:51 +08:00
parent 3d8befa376
commit ba07b695dd
6 changed files with 41 additions and 12 deletions

View File

@ -53,7 +53,7 @@ export default function subscribeThemeStore() {
osTheme,
newValue => {
const isDark = newValue === 'dark';
theme.setDarkMode(isDark);
theme.autoFollowSystemMode(isDark);
},
{ immediate: true }
);