mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-05-06 13:58:43 +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.CustomBackgroundImage = config.background_image_day;
|
||||||
}
|
}
|
||||||
window.CustomMobileBackgroundImage = window.CustomBackgroundImage;
|
window.CustomMobileBackgroundImage = window.CustomBackgroundImage;
|
||||||
|
|
||||||
|
// 设置强制主题
|
||||||
|
window.ForceTheme = isNight ? "dark" : "light";
|
||||||
}
|
}
|
||||||
}, [settingData]);
|
}, [settingData]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user