캐릭터 챗봇 #74
|
@ -1613,6 +1613,8 @@ export default {
|
||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
// 수정 시 변경된 필드만 전송
|
// 수정 시 변경된 필드만 전송
|
||||||
const changedData = this.getChangedFields();
|
const changedData = this.getChangedFields();
|
||||||
|
// 인물관계는 삭제를 포함해 항상 서버와 동기화를 보장하기 위해 항상 포함
|
||||||
|
changedData.relationships = this.character.relationships || [];
|
||||||
response = await updateCharacter(changedData, this.character.image);
|
response = await updateCharacter(changedData, this.character.image);
|
||||||
} else {
|
} else {
|
||||||
// 신규 등록 시 ID 필드를 제외한 데이터 전송
|
// 신규 등록 시 ID 필드를 제외한 데이터 전송
|
||||||
|
|
Loading…
Reference in New Issue