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
|
|
@ -96,7 +96,7 @@ export default {
|
|||
loadNotifications() {
|
||||
this.notificationService.getAll()
|
||||
.then(r => {
|
||||
this.$set(this, 'allNotifications', r)
|
||||
this.allNotifications = r
|
||||
})
|
||||
.catch(e => {
|
||||
this.$message.error(e)
|
||||
|
|
@ -135,7 +135,7 @@ export default {
|
|||
n.read = true
|
||||
this.notificationService.update(n)
|
||||
.then(r => {
|
||||
this.$set(this.allNotifications, index, r)
|
||||
this.allNotifications[index] = r
|
||||
})
|
||||
.catch(e => this.$message.error(e))
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue