feat(settings/clock/date): refresh date every second
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user