From 5ee0fe6a6069a5fc7152e44e053cc16ae55399ae Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 9 Sep 2025 14:54:18 +0900 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=EC=9D=B8=EB=AC=BC=EA=B4=80?= =?UTF-8?q?=EA=B3=84=20=EC=82=AD=EC=A0=9C=20=ED=9B=84=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20=EC=A0=80=EC=9E=A5=20=EC=8B=9C=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EB=B0=98=EC=98=81=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8D=98=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 수정 모드에서 saveCharacter가 변경 필드만 전송하면서 relationships 배열이 제외되어 삭제/수정 사항이 서버에 반영되지 않는 문제가 있었습니다. 수정 시 항상 relationships를 포함해 서버와 동기화되도록 변경했습니다. - CharacterForm.vue: update 시 changedData.relationships 항상 포함 --- src/views/Chat/CharacterForm.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/Chat/CharacterForm.vue b/src/views/Chat/CharacterForm.vue index c1af94b..42abbd0 100644 --- a/src/views/Chat/CharacterForm.vue +++ b/src/views/Chat/CharacterForm.vue @@ -1613,6 +1613,8 @@ export default { if (this.isEdit) { // 수정 시 변경된 필드만 전송 const changedData = this.getChangedFields(); + // 인물관계는 삭제를 포함해 항상 서버와 동기화를 보장하기 위해 항상 포함 + changedData.relationships = this.character.relationships || []; response = await updateCharacter(changedData, this.character.image); } else { // 신규 등록 시 ID 필드를 제외한 데이터 전송