Update table.vue

This commit is contained in:
梁灏 2020-07-01 11:35:35 +08:00
parent f0d03d7200
commit 26ae79efb9

View file

@ -1405,8 +1405,11 @@
}); });
}, },
beforeDestroy () { beforeDestroy () {
this.$off('on-visible-change');
off(window, 'resize', this.handleResize); off(window, 'resize', this.handleResize);
this.observer.removeListener(this.$el, this.handleResize); this.observer.removeAllListeners(this.$el);
this.observer.uninstall(this.$el);
this.observer = null;
}, },
watch: { watch: {
data: { data: {