Procházet zdrojové kódy

首页 大屏统计 banner bugfix

kevin_zhangl před 3 roky
rodič
revize
f4a799f4b1
1 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 5 3
      frontendEle/src/views/dashboard/index.vue

+ 5 - 3
frontendEle/src/views/dashboard/index.vue

@@ -145,9 +145,11 @@
       },
       imgLoad() {
         let _this = this
-        _this.$nextTick(function () {
-          _this.bannerHeight = _this.$refs.bannerHeight[0].height
-        })
+        if (_this.$refs.bannerHeight) {
+          _this.$nextTick(function () {
+            _this.bannerHeight = _this.$refs.bannerHeight[0].height
+          })
+        }
       }
     }
   }