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) this.$store.commit('TimelineSpace/Contents/Home/changeHeading', true)
} }
}, },
timeline: function (newState, _oldState) { timeline: {
if (this.heading && newState.length > 0) { handler(newState, _oldState) {
this.$store.dispatch('TimelineSpace/Contents/Home/saveMarker') if (this.heading && newState.length > 0) {
} this.$store.dispatch('TimelineSpace/Contents/Home/saveMarker')
}
},
deep: true
} }
}, },
methods: { methods: {

View File

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

View File

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