File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ <h2 class="title">{{infos.title}}</h2>
47
47
</ button >
48
48
</ div >
49
49
</ body >
50
-
50
+ < script src =" ./dist/img-previewer.js " > </ script >
51
51
< script type ="module ">
52
52
const app = new Vue ( {
53
53
el : '#app' ,
@@ -72,10 +72,12 @@ <h2 class="title">{{infos.title}}</h2>
72
72
} ) ;
73
73
} ,
74
74
initImgPreviewer ( ) {
75
- const imgPreviewer = new ImgPreviewer ( '#app' , {
76
- scrollbar : true
75
+ this . $nextTick ( ( ) => {
76
+ const imgPreviewer = new ImgPreviewer ( '#app' , {
77
+ scrollbar : true
78
+ } ) ;
77
79
} ) ;
78
- } ,
80
+ }
79
81
albumsCountAnimation ( ) {
80
82
const albumCount = document . querySelector ( '.album-count span' ) ;
81
83
const totalImages = this . totalImages ;
@@ -121,6 +123,4 @@ <h2 class="title">{{infos.title}}</h2>
121
123
}
122
124
} ) ;
123
125
</ script >
124
- < script src ="./dist/img-previewer.js "> </ script >
125
-
126
126
</ html >
You can’t perform that action at this time.
0 commit comments