P-105 Ошибка при создании
This commit is contained in:
1 parent
fcf2f0c02c
commit
4ab02aa04f
1 file changed
+9
-1
@@ -347,6 +347,14 @@ export default {
|
|||||||
.padStart(2, "0")}`
|
.padStart(2, "0")}`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
watch(form.value, () => {
|
||||||
|
if (!form.value.title || !form.value.description || form.value.questions < 1) {
|
||||||
|
errorMessage.value = "Все обязательные поля должны быть заполнены";
|
||||||
|
} else {
|
||||||
|
errorMessage.value = "";
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
watch(selectedTimeStart, () => {
|
watch(selectedTimeStart, () => {
|
||||||
updateStartDate()
|
updateStartDate()
|
||||||
})
|
})
|
||||||
@@ -370,7 +378,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const returnend = (dates) => {
|
const returnend = (dates) => {
|
||||||
form.value.endtDate = dates
|
form.value.endDate = dates
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in new issue
Block a user