This commit is contained in:
Nya Candy 2024-01-27 13:43:47 +08:00 committed by fly_mc
parent f7b30b4f08
commit 8c446c0e78

View file

@ -76,6 +76,14 @@ export function useNoteCapture(props: {
}
case 'updated': {
note.value.history = [
...note.value.history,
{
createdAt: note.value.updatedAt,
cw: note.value.cw,
text: note.value.text,
},
];
note.value.updatedAt = body.updatedAt;
note.value.cw = body.cw;
note.value.text = body.text;