Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6be746b0
authored
2020-01-22 10:18:25 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉video的Resize
1 parent
430b5fe0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/pages/index/index.js
src/pages/index/index.js
View file @
6be746b
...
...
@@ -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
();
...
...
Please
register
or
sign in
to post a comment