|
@@ -166,7 +166,7 @@
|
|
|
@click="onClickExhibitionImage(0)"
|
|
|
>
|
|
|
<waterfall
|
|
|
- v-if="choosenExhibition.imageNumber > 1"
|
|
|
+ v-if="choosenExhibition.imageNumber > 1 && canShow"
|
|
|
:col="2"
|
|
|
:width="waterfallImgWidth"
|
|
|
:gutter-width="gutterWidth"
|
|
@@ -224,6 +224,7 @@ export default {
|
|
|
imageSrc: null,
|
|
|
linkSrc: null,
|
|
|
curTabIdx: 0,
|
|
|
+ canShow: false, // 延迟加载瀑布流组件,才能保证图片被分为两列。这组件真垃圾。
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -264,6 +265,9 @@ export default {
|
|
|
watch: {
|
|
|
},
|
|
|
mounted() {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.canShow = true
|
|
|
+ }, 1000)
|
|
|
},
|
|
|
destroyed() {
|
|
|
// qq浏览器的bug:本组件被销毁后,视频元素依然存在。需要刷新页面。
|