|
@@ -237,9 +237,14 @@ export default {
|
|
|
showImgPreview(newV, oldV) {
|
|
|
if (newV !== oldV && !newV) {
|
|
|
this.autoplay = 3000
|
|
|
- // 预览大图切换横竖屏之后,主页面轮播图,位置错乱,重新resize恢复位置
|
|
|
- this.$refs.mSwipe.resize()
|
|
|
}
|
|
|
+ // 预览大图切换横竖屏之后,主页面轮播图,位置错乱,重新resize恢复位置
|
|
|
+ this.$refs.mSwipe.resize()
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.mSwipe.resize()
|
|
|
+ }, 1000)
|
|
|
+ })
|
|
|
},
|
|
|
},
|
|
|
created() {
|