修改自动主题切换时间

This commit is contained in:
MoYi 2023-12-08 23:36:04 +08:00
parent fcbb16a98c
commit aa0d8f7b3d

View File

@ -301,7 +301,7 @@ const vantTheme = ref<"light" | "dark">("light");
const initTheme = () => {
const now = new Date();
const hour = now.getHours();
if (hour < 7 || hour > 16) {
if (hour < 7 || hour > 17) {
toggleDark(true);
vantTheme.value = "dark";
return;