Fix watching array

This commit is contained in:
AkiraFukushima 2022-04-26 19:00:47 +09:00
parent 442479f567
commit 907c3c76a2
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
3 changed files with 21 additions and 12 deletions

View File

@ -163,10 +163,13 @@ export default {
this.$store.commit('TimelineSpace/Contents/Home/changeHeading', true)
}
},
timeline: function (newState, _oldState) {
if (this.heading && newState.length > 0) {
this.$store.dispatch('TimelineSpace/Contents/Home/saveMarker')
}
timeline: {
handler(newState, _oldState) {
if (this.heading && newState.length > 0) {
this.$store.dispatch('TimelineSpace/Contents/Home/saveMarker')
}
},
deep: true
}
},
methods: {

View File

@ -151,10 +151,13 @@ export default {
this.$store.commit('TimelineSpace/Contents/Mentions/changeHeading', true)
}
},
mentions: function (newState, _oldState) {
if (this.heading && newState.length > 0) {
this.$store.dispatch('TimelineSpace/Contents/Mentions/saveMarker')
}
mentions: {
handler(newState, _oldState) {
if (this.heading && newState.length > 0) {
this.$store.dispatch('TimelineSpace/Contents/Mentions/saveMarker')
}
},
deep: true
}
},
methods: {

View File

@ -150,10 +150,13 @@ export default {
this.$store.dispatch('TimelineSpace/Contents/Notifications/resetBadge')
}
},
notifications: function (newState, _oldState) {
if (this.heading && newState.length > 0) {
this.$store.dispatch('TimelineSpace/Contents/Notifications/saveMarker')
}
notifications: {
handler(newState, _oldState) {
if (this.heading && newState.length > 0) {
this.$store.dispatch('TimelineSpace/Contents/Notifications/saveMarker')
}
},
deep: true
}
},
methods: {