mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-05-06 05:48:41 +00:00
fix: time-based theme and background switching
This commit is contained in:
@@ -59,6 +59,9 @@ const MainApp: React.FC = () => {
|
||||
window.CustomBackgroundImage = config.background_image_day;
|
||||
}
|
||||
window.CustomMobileBackgroundImage = window.CustomBackgroundImage;
|
||||
|
||||
// 设置强制主题
|
||||
window.ForceTheme = isNight ? "dark" : "light";
|
||||
}
|
||||
}, [settingData]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user