mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 21:03:09 +02:00
TLにNote追加時にdeepcopyする (#6275)
This commit is contained in:
parent
9b9b6ade64
commit
f530b5237d
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ export default Vue.extend({
|
||||||
});
|
});
|
||||||
|
|
||||||
const prepend = note => {
|
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) {
|
if (this.sound) {
|
||||||
this.$root.sound(note.userId === this.$store.state.i.id ? 'noteMy' : 'note');
|
this.$root.sound(note.userId === this.$store.state.i.id ? 'noteMy' : 'note');
|
||||||
|
|
Loading…
Reference in a new issue