6be746b0 by simon

去掉video的Resize

1 parent 430b5fe0
......@@ -156,9 +156,9 @@ export default {
this.fetchIndexVideo().then(res => {
this.refreshVideoPlayer();
});
if (!this.isMobile) {
window.addEventListener('resize', () => this.refreshVideoPlayer(), false);
}
// if (!this.isMobile) {
// window.addEventListener('resize', () => this.refreshVideoPlayer(), false);
// }
},
fetchBanner() {
return new Promise((resolve, reject) => {
......@@ -220,7 +220,7 @@ export default {
}
},
beforeDestroy() {
window.removeEventListener('resize', this.refreshVideoPlayer(), false);
// window.removeEventListener('resize', this.refreshVideoPlayer(), false);
},
mounted() {
this.initData();
......