From bbacab88c5dca2466ac237aa85601f599c0de1a3 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 7 Aug 2025 21:37:09 +0900 Subject: [PATCH] =?UTF-8?q?feat(character):=20=EC=BA=90=EB=A6=AD=ED=84=B0?= =?UTF-8?q?=20=EB=A1=9C=EB=93=9C,=20=EC=A0=80=EC=9E=A5,=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20success=EA=B0=80=20true=EC=97=AC=EC=95=BC?= =?UTF-8?q?=EB=A7=8C=20=EB=8B=A4=EC=9D=8C=20=ED=96=89=EB=8F=99=EC=9D=84=20?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Chat/CharacterForm.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/views/Chat/CharacterForm.vue b/src/views/Chat/CharacterForm.vue index 504cab5..8286c0a 100644 --- a/src/views/Chat/CharacterForm.vue +++ b/src/views/Chat/CharacterForm.vue @@ -922,19 +922,21 @@ export default { image: null, imageUrl: '', isActive: true, - createdAt: '', gender: '', age: '', mbti: '', - worldView: '', - relationships: '', - personality: '', speechPattern: '', conversationStyle: '', appearance: '', systemPrompt: '', tags: [], - memories: [] + memories: [], + relationships: [], + hobbies: [], + values: [], + goals: [], + personalities: [], + backgrounds: [] }, ageRules: [ v => !!v || '나이를 입력하세요', @@ -1331,7 +1333,7 @@ export default { const response = await getCharacter(id); // API 응답에서 캐릭터 정보 설정 - if (response && response.data) { + if (response && response.success === true && response.data) { const data = response.data; // 원본 데이터 저장 (깊은 복사) @@ -1390,7 +1392,6 @@ export default { if (this.isEdit) { // 수정 시 변경된 필드만 전송 const changedData = this.getChangedFields(); - console.log('변경된 필드만 전송:', changedData); response = await updateCharacter(changedData, this.character.image); } else { // 신규 등록 시 ID 필드를 제외한 데이터 전송 @@ -1399,7 +1400,7 @@ export default { response = await createCharacter(characterWithoutId); } - if (response && response.data) { + if (response && response.success === true && response.data) { this.notifySuccess(this.isEdit ? '캐릭터가 수정되었습니다.' : '캐릭터가 등록되었습니다.'); this.goBack(); } else {