From 1e09f10b8de2569efc6d8865ab9b26a59d67f759 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 15:48:24 +0300 Subject: [PATCH] feat [P-01]: news true --- src/front/src/components/vote/ConstructorVote/MainInfo.vue | 6 +++--- src/front/src/components/vote/VoteConstructor.vue | 4 ++-- src/front/src/utils/axios-api.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/front/src/components/vote/ConstructorVote/MainInfo.vue b/src/front/src/components/vote/ConstructorVote/MainInfo.vue index ca35e67f7..241a5c8d1 100644 --- a/src/front/src/components/vote/ConstructorVote/MainInfo.vue +++ b/src/front/src/components/vote/ConstructorVote/MainInfo.vue @@ -20,12 +20,12 @@
Публикация новости:
Дата и время:
@@ -107,7 +107,7 @@ export default { : { title: '', description: '', - createnews: false, + news: false, appoint: false, startDate: new Date(), endDate: new Date(), diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 580c5e1e8..d6c8d0729 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -335,7 +335,7 @@ export default { startDate: props.isTest ? null : new Date(), endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], - createnews: false, + news: false, appoint: false }); @@ -570,7 +570,7 @@ export default { startDate: props.isTest ? null : new Date(), endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], - createnews: false, + news: false, appoint: false }; testSettings.value = { diff --git a/src/front/src/utils/axios-api.js b/src/front/src/utils/axios-api.js index 3243c1191..8f3c12a7d 100644 --- a/src/front/src/utils/axios-api.js +++ b/src/front/src/utils/axios-api.js @@ -120,7 +120,7 @@ async function createVote(voteData) { }); - formData.append('createnews', voteData.createnews); + formData.append('news', voteData.news); formData.append('title', voteData.title); formData.append('description', voteData.description); formData.append('startDate', new Date(voteData.startDate).toISOString());