Procházet zdrojové kódy

fixbug : 修复 项目概况 预览大图切换横竖屏之后,主页面轮播图,位置错乱的问题

yunxing před 4 roky
rodič
revize
6fd725baa8
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/views/overview/index.vue

+ 2 - 0
src/views/overview/index.vue

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