去掉video的Resize
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -156,9 +156,9 @@ export default { | ... | @@ -156,9 +156,9 @@ export default { |
156 | this.fetchIndexVideo().then(res => { | 156 | this.fetchIndexVideo().then(res => { |
157 | this.refreshVideoPlayer(); | 157 | this.refreshVideoPlayer(); |
158 | }); | 158 | }); |
159 | if (!this.isMobile) { | 159 | // if (!this.isMobile) { |
160 | window.addEventListener('resize', () => this.refreshVideoPlayer(), false); | 160 | // window.addEventListener('resize', () => this.refreshVideoPlayer(), false); |
161 | } | 161 | // } |
162 | }, | 162 | }, |
163 | fetchBanner() { | 163 | fetchBanner() { |
164 | return new Promise((resolve, reject) => { | 164 | return new Promise((resolve, reject) => { |
... | @@ -220,7 +220,7 @@ export default { | ... | @@ -220,7 +220,7 @@ export default { |
220 | } | 220 | } |
221 | }, | 221 | }, |
222 | beforeDestroy() { | 222 | beforeDestroy() { |
223 | window.removeEventListener('resize', this.refreshVideoPlayer(), false); | 223 | // window.removeEventListener('resize', this.refreshVideoPlayer(), false); |
224 | }, | 224 | }, |
225 | mounted() { | 225 | mounted() { |
226 | this.initData(); | 226 | this.initData(); | ... | ... |
-
Please register or sign in to post a comment