ratiw / vuetable-2-tutorial

MIT License
258 stars 67 forks source link

refresh of undefined #65

Closed ashcslmn closed 6 years ago

ashcslmn commented 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() )

//Filterbar.vue this.$events.fire('filter-set', this.filterText) Is there anything i did wrong? Thanks