diff --git a/frontend/src/pages/relay/TaskCreatePage.vue b/frontend/src/pages/relay/TaskCreatePage.vue index 79f6d78..f5304db 100644 --- a/frontend/src/pages/relay/TaskCreatePage.vue +++ b/frontend/src/pages/relay/TaskCreatePage.vue @@ -161,11 +161,15 @@ function addItem() { const aiSuggesting = ref(false) const aiSuggestions = ref(null) const aiError = ref(null) -const canRequestAi = computed(() => !aiSuggesting.value && title.value.trim().length > 0) // 프로젝트 설명 + 제목/내용을 분석해 카테고리별 할 일 추천을 받는다 async function requestAiSuggestions() { - if (!canRequestAi.value) return + if (aiSuggesting.value) return + // AI 추천은 제목 기반 — 제목이 비면 인라인 에러로 안내 + if (title.value.trim().length === 0) { + titleError.value = true + return + } aiSuggesting.value = true aiError.value = null aiSuggestions.value = null @@ -373,7 +377,7 @@ function goBack() {