修改自动主题切换时间
This commit is contained in:
parent
fcbb16a98c
commit
aa0d8f7b3d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user