Skip to content

Commit

Permalink
fixed: Fixed an issue where Luna theme could not be switched
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoJiSen committed Sep 16, 2024
1 parent fa473b3 commit 72c8eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/utils/useTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {menuTheme} from '@src/sass/theme/menu';

export const useTheme = () => {
// 获取并设置主题类型
const ThemeType = localStorage.getItem('ThemeType') || 'default';
const ThemeType = localStorage.getItem('themeType') || 'default';
const html = document.documentElement as HTMLElement;

// 通用设置主题的方法
Expand Down

0 comments on commit 72c8eb6

Please sign in to comment.