浏览代码

首页 大屏统计 banner bugfix

kevin_zhangl 3 年之前
父节点
当前提交
f4a799f4b1
共有 1 个文件被更改,包括 5 次插入3 次删除
  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
+          })
+        }
       }
     }
   }