remove a small warning
This commit is contained in:
@@ -38,7 +38,7 @@ export default {
|
|||||||
this.$fetch()
|
this.$fetch()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data ({ $store }) {
|
data () {
|
||||||
return {
|
return {
|
||||||
mdiMagnify, mdiCloseCircle,
|
mdiMagnify, mdiCloseCircle,
|
||||||
isCurrentMonth: true,
|
isCurrentMonth: true,
|
||||||
@@ -89,16 +89,18 @@ 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)
|
||||||
this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => {
|
if (process.client) {
|
||||||
if (action.type === 'setFilter') {
|
this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => {
|
||||||
if (this.filter.query && this.filter.query.length > 2) {
|
if (action.type === 'setFilter') {
|
||||||
this.search()
|
if (this.filter.query && this.filter.query.length > 2) {
|
||||||
} else {
|
this.search()
|
||||||
this.tmpEvents = []
|
} else {
|
||||||
this.$fetch()
|
this.tmpEvents = []
|
||||||
|
this.$fetch()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}})
|
||||||
}})
|
}
|
||||||
},
|
},
|
||||||
destroyed () {
|
destroyed () {
|
||||||
this.$root.$off('dayclick')
|
this.$root.$off('dayclick')
|
||||||
|
|||||||
Reference in New Issue
Block a user