From 5f9a99dd0270b292eff9c1b1a4840461d26f5779 Mon Sep 17 00:00:00 2001 From: yoon Date: Fri, 4 Apr 2025 16:35:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=AC=EB=9F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/projectlist/ProjectList.vue | 9 ++++++++- src/components/user/RegisterForm.vue | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/projectlist/ProjectList.vue b/src/components/projectlist/ProjectList.vue index 32cbdce..8d5ca72 100644 --- a/src/components/projectlist/ProjectList.vue +++ b/src/components/projectlist/ProjectList.vue @@ -56,6 +56,7 @@ :value="color" :data="colorList" @update:data="color = $event" + :is-alert="colorAlert" />
@@ -166,9 +167,11 @@ const endDay = ref(''); const description = ref(''); const nameAlert = ref(false); + const colorAlert = ref(false); const addressAlert = ref(false); const startDayAlert = ref(false); + const startDateInput = ref(null); const endDateInput = ref(null); @@ -319,7 +322,11 @@ startDayAlert.value = startDay.value.trim() === ''; addressAlert.value = addressData.value.address.trim() === ''; - if (nameAlert.value || startDayAlert.value || addressAlert.value) { + if (!colorList.value || colorList.value.length === 0) { + colorAlert.value = true; + } + + if (nameAlert.value || startDayAlert.value || addressAlert.value || colorAlert.value) { return; } diff --git a/src/components/user/RegisterForm.vue b/src/components/user/RegisterForm.vue index e1b2bf7..3f5edc3 100644 --- a/src/components/user/RegisterForm.vue +++ b/src/components/user/RegisterForm.vue @@ -427,6 +427,7 @@ addressAlert.value || phoneAlert.value || phoneErrorAlert.value || + colorAlert.value || colorErrorAlert.value ) { return;