fix: directly set arrays, objects and delete directly
Not needed since vue3 uses proxies
This commit is contained in:
parent
2b20f328cb
commit
db49b9b532
33 changed files with 104 additions and 113 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import Vue from 'vue'
|
||||
|
||||
import {findIndexById} from '@/helpers/find'
|
||||
|
||||
export default {
|
||||
|
|
@ -10,7 +8,7 @@ export default {
|
|||
mutations: {
|
||||
set(state, attachments) {
|
||||
console.debug('Set attachments', attachments)
|
||||
Vue.set(state, 'attachments', attachments)
|
||||
state.attachments = attachments
|
||||
},
|
||||
add(state, attachment) {
|
||||
console.debug('Add attachement', attachment)
|
||||
|
|
|
|||
Reference in a new issue