feat: set pwa color

This commit is contained in:
shinya
2025-07-29 18:35:50 +08:00
parent 58ca3ef744
commit d954dd2abc
3 changed files with 7 additions and 2 deletions

View File

@@ -1 +1 @@
20250729163024
20250729183551

View File

@@ -20,6 +20,11 @@ export function ThemeToggle() {
} else {
meta.setAttribute('content', theme === 'dark' ? '#0c111c' : '#f9fbfe');
}
document.documentElement.style.backgroundColor =
theme === 'dark' ? '#0c111c' : '#f9fbfe';
document.body.style.backgroundColor =
theme === 'dark' ? '#0c111c' : '#f9fbfe';
};
useEffect(() => {

View File

@@ -2,7 +2,7 @@
'use client';
const CURRENT_VERSION = '20250729163024';
const CURRENT_VERSION = '20250729183551';
// 版本检查结果枚举
export enum UpdateStatus {