Closed ashcslmn closed 6 years ago
I've encountered error "TypeError: Cannot read property 'refresh' of undefined" when clicking the button Search.
These are my codes, though it came straight from the tutorial.
//index.vue
this.$events.$on('filter-set', eventData => this.onFilterSet(eventData)) this.moreParams.filter = filterText Vue.nextTick( () => this.$refs.vuetable.refresh() )
this.$events.$on('filter-set', eventData => this.onFilterSet(eventData))
this.moreParams.filter = filterText Vue.nextTick( () => this.$refs.vuetable.refresh() )
//Filterbar.vue this.$events.fire('filter-set', this.filterText) Is there anything i did wrong? Thanks
this.$events.fire('filter-set', this.filterText)
I've encountered error "TypeError: Cannot read property 'refresh' of undefined" when clicking the button Search.
These are my codes, though it came straight from the tutorial.
//index.vue
this.$events.$on('filter-set', eventData => this.onFilterSet(eventData))
this.moreParams.filter = filterText Vue.nextTick( () => this.$refs.vuetable.refresh() )
//Filterbar.vue
this.$events.fire('filter-set', this.filterText)
Is there anything i did wrong? Thanks