feat(settings/clock/date): refresh date every second

This commit is contained in:
2026-01-14 23:37:11 +01:00
parent b6f0a860c7
commit 53af0f399b

View File

@@ -1,10 +1,14 @@
<script setup lang="ts">
import { SettingsBottomScreenNumberInput as NumberInput } from "#components";
import { useIntervalFn } from "@vueuse/core";
const store = useSettingsStore();
const confirmationModal = useConfirmationModal();
const now = new Date();
const now = ref(new Date());
useIntervalFn(() => {
now.value = new Date();
}, 1000);
const handleCancel = () => {
store.closeSubMenu();