Update VoteConstructor.vue

This commit is contained in:
Nukeap committed 2025-01-15 15:42:47 +03:00
1 parent 5478986520
commit 1638833dd8
1 file changed
+4 -1
@@ -60,6 +60,7 @@
hide-weekdays
title="дата окончания"
/>
<v-select
v-model="selectedTimeEnd"
:items="timeOptions"
@@ -362,6 +363,7 @@ export default {
updateStartDate()
})
watch(selectedTimeEnd, () => {
updateEndDate()
})
@@ -370,7 +372,8 @@ export default {
form.value.startDate.setHours(hours, minutes);
};
const updateEndDate = () => {
const [hours, minutes] = selectedTimeStart.value.split(":").map(Number);
const [hours, minutes] = selectedTimeEnd.value.split(":").map(Number);
console.log( form.value.endDate);
form.value.endDate.setHours(hours, minutes);
};