remove a small warning

This commit is contained in:
lesion
2023-03-09 21:24:45 +01:00
parent ccffe5f7b0
commit b401d829db

View File

@@ -38,7 +38,7 @@ export default {
this.$fetch() this.$fetch()
} }
}, },
data ({ $store }) { data () {
return { return {
mdiMagnify, mdiCloseCircle, mdiMagnify, mdiCloseCircle,
isCurrentMonth: true, isCurrentMonth: true,
@@ -89,6 +89,7 @@ export default {
created () { created () {
this.$root.$on('dayclick', this.dayChange) this.$root.$on('dayclick', this.dayChange)
this.$root.$on('monthchange', this.monthChange) this.$root.$on('monthchange', this.monthChange)
if (process.client) {
this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => { this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => {
if (action.type === 'setFilter') { if (action.type === 'setFilter') {
if (this.filter.query && this.filter.query.length > 2) { if (this.filter.query && this.filter.query.length > 2) {
@@ -99,6 +100,7 @@ export default {
} }
} }
}}) }})
}
}, },
destroyed () { destroyed () {
this.$root.$off('dayclick') this.$root.$off('dayclick')