From 473f13a271b17fa1aa213582bb2f9e5a6c78d6c9 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 21 Apr 2022 11:32:21 +0800 Subject: [PATCH] bug --- src/apps/AppVideoSurveillance/AppVideoSurveillance.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue b/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue index 6ea396d1..b7e8bfef 100644 --- a/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue +++ b/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue @@ -166,13 +166,16 @@ export default { option && this.Echart.setOption(option) }, }, - created() { + onLoad() { this.areaId = this.user.areaId this.areaName = this.user.areaName + + this.$nextTick(() => { + this.getList() + }) }, onShow() { document.title = '视频监控' - this.getList() }, mounted() { this.Echart = echarts.init(document.getElementById('echarts'))