From bc8833483a956e46f387a128c7c628916a47cb0a Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 2 Sep 2025 15:31:24 +0900 Subject: [PATCH] =?UTF-8?q?fix(character-image):=20=EC=BA=90=EB=A6=AD?= =?UTF-8?q?=ED=84=B0=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=93=B1=EB=A1=9D/?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 트리거 단어 최소 개수 3개로 수정 --- src/views/Chat/CharacterImageForm.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/Chat/CharacterImageForm.vue b/src/views/Chat/CharacterImageForm.vue index 7359bcc..dbf3594 100644 --- a/src/views/Chat/CharacterImageForm.vue +++ b/src/views/Chat/CharacterImageForm.vue @@ -126,7 +126,7 @@
- 트리거를 입력하고 엔터를 누르면 추가됩니다. (20자 이내, 최소 5개, 최대 10개) + 트리거를 입력하고 엔터를 누르면 추가됩니다. (20자 이내, 최소 3개, 최대 10개)
@@ -179,7 +179,7 @@ export default { previewImage: null, triggers: [], triggerRules: [ - v => (v && v.length >= 5 && v.length <= 10) || '트리거는 최소 5개, 최대 10개까지 등록 가능합니다' + v => (v && v.length >= 3 && v.length <= 10) || '트리거는 최소 3개, 최대 10개까지 등록 가능합니다' ], imageRules: [ v => !!v || '이미지를 선택하세요' @@ -188,7 +188,7 @@ export default { }, computed: { canSubmit() { - const triggersValid = this.triggers && this.triggers.length >= 5 && this.triggers.length <= 10 + const triggersValid = this.triggers && this.triggers.length >= 3 && this.triggers.length <= 10 if (this.isEdit) return triggersValid return !!this.form.image && triggersValid } @@ -260,9 +260,9 @@ export default { }, async save() { if (this.isSubmitting) return - // 트리거 개수 검증: 최소 5개, 최대 10개 - if (!this.triggers || this.triggers.length < 5 || this.triggers.length > 10) { - this.notifyError('트리거는 최소 5개, 최대 10개여야 합니다.') + // 트리거 개수 검증: 최소 3개, 최대 10개 + if (!this.triggers || this.triggers.length < 3 || this.triggers.length > 10) { + this.notifyError('트리거는 최소 3개, 최대 10개여야 합니다.') return } this.isSubmitting = true