From f530b5237d1cdec50ebbf6b60470505973fa9225 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 18 Apr 2020 16:05:39 +0900 Subject: [PATCH] =?UTF-8?q?TL=E3=81=ABNote=E8=BF=BD=E5=8A=A0=E6=99=82?= =?UTF-8?q?=E3=81=ABdeepcopy=E3=81=99=E3=82=8B=20(#6275)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/timeline.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue index 234ed6b07..bd1901a62 100644 --- a/src/client/components/timeline.vue +++ b/src/client/components/timeline.vue @@ -50,7 +50,8 @@ export default Vue.extend({ }); const prepend = note => { - (this.$refs.tl as any).prepend(note); + const _note = JSON.parse(JSON.stringify(note)); // deepcopy + (this.$refs.tl as any).prepend(_note); if (this.sound) { this.$root.sound(note.userId === this.$store.state.i.id ? 'noteMy' : 'note');